Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

An application needs to calculate sales tax for purchases. You decide to simplif

ID: 3569585 • Letter: A

Question

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)

Explanation / Answer

c.) decTotal = decSubtotal + GetSalesTax(decSubtotal)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote