Ask 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 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?

+5
Answers (1)
  1. 18 December, 11:54
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers