Question: C + + Option 2 : The local t - shirt shop sells shirts that retail for $ 1 2 . Quantity dis - counts
C
Option : The local tshirt shop sells shirts that retail for $ Quantity dis counts are given as follow:
Number of Shirts Discount
or more
Write a program that prompts the user for the number of shirts required and then computes the total price. Make sure the program accepts only nonnegative input.
Use the following sample runs to guide you:
Sample Run :
How many shirts would you like
The cost per shirt is $ and the total cost is $
Sample Run :
How many shirts would you like
The cost per shirt is $ and the total cost is $
Sample Run :
How many shirts would you like
The cost per shirt is $ and the total cost is $
Sample Run :
How many shirts would you like
Invalid Input: Please enter a nonnegative integer
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
