Question: Write a C++ program: You were hired by a T-shirt store to write a program to help them sell T-shirts online. They are running a

Write a C++ program:

You were hired by a T-shirt store to write a program to help them sell T-shirts online. They are running a special with the following discounts:

T-Shirt Quantity Discount

5-10 5%

11-20 10%

21-30 15%

31+ 20%

Assuming a $10 price for a T-shirt, write a program that will ask the user for the number of T-shirts he or she wishes to purchase and then calculate the discount and the total and present it to the user:

EXAMPLE:

12 T-shirts @ $10 each = $120

Discount 10% = $ 12

Total = $108

Thank you for your business!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!