Solved

Case 1 - MTN Outdoor

Question 53

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions