Ask Question
22 September, 17:18

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?

+2
Answers (1)
  1. 22 September, 18:24
    0
    decTotal = decSubtotal + GetSalesTax (decSubtotal)

    Explanation:

    First the tax is calculated using the GetSalesTax function and passing in the subTotal as a parameter to compute the tax:

    GetSalesTax (decSubtotal).

    Then the return value of the function is added to subTotal and then assigned to the variable decTotal.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “You have just started working for MTN Outdoor as a programmer. Your first assignment is to review and correct various code to use sub ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers