Total Purchase. Please Help

Joined
Oct 12, 2022
Messages
1
Reaction score
0
(Total Purchase) A customer in a store can purchase any one of the five items listed below: The prices of the five items are:



Price of item 1 = 12.95

Price of item 2 = 24.95

Price of item 3 = 6.95

Price of item 4 = 14.95

Price of item 5 = 24.95

Write a program that prompts the user to enter the quantity and item # of the product being bought. You should then calculate and print the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 6% (declared as a constant).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top