Case 1 - MTN Outdoor
You have just started working for MTN Outdoor as a programmer. Your first assignment is to review and correct various code to use sub procedures and/or functions.
-An application needs to calculate sales tax for purchases.You decide to simplify the code by putting the sales tax calculation in a function.The returned value from the function is then added to the Subtotal,and the result is stored in the decTotal variable.Which of the following statements will call the GetSalesTax function and return a value to be used in the Total calculation?
A) decTotal = decSubtotal + GetSalesTax()
B) decSubtotal + GetSalesTax(decSubtotal)
C) decTotal = decSubtotal + GetSalesTax(decSubtotal)
D) decTotal = decSubtotal + GetSalesTax(decSubtotal As Decimal)
Correct Answer:
Verified
Q45: Write the code for a Sub procedure
Q46: What is a combo box? List the
Q47: Write the code for a Sub procedure
Q48: What are the three main reasons programmers
Q49: What is the Math.Round function? Provide the
Q51: How do the parameterList of a procedure
Q52: What is the difference between a Sub
Q53: Explain the difference between passing data by
Q54: Write the code for a Sub procedure
Q55: An application uses a message box to
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents