logo

Crowdly

Write a subroutine named “TaxCalculator” to: (A) Ask the user for the unit p...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Write a subroutine named “TaxCalculator” to:

(A) Ask the user for the unit price of a product, the

quantity purchased (which must be a whole amount, such as 5, 12, 30), the tax

rate (as a percentage, taking values from 0 to 100) with an input box.

(B) Calculate:

gross total = unit price x quantity

purchased

tax amount = gross total x tax rate / 100

(C) Display gross total in cell A1 and tax amount in cell A2

of the active worksheet.

Make sure to include “Option Explicit” statement before

the sub.

[Expected time to answer: 7 mins]

More questions like this

Want instant access to all verified answers on moodle.lisboa.ucp.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!