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)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.