Create a program that will compute the total sales for a specific order of T-shirts (Each T-shirt costs
P105.00 ) with the following table of discounts:
# of T-Shirts
1 – 5 5% Discount
6 – 10 7% Discount
11 – 15 10% Discount
Above 15 20% Discounts
Sample Input/Output:
Enter Number of T-Shirts: 12
Your total payable is 1134.
Explanation for the above sample:
** Since the user wants to buy 12 shirts x 105 each = 1,260 then for 11-15 t-shirts she could get
10% discount which is 126 (1260*.1) so the total payable is 1,134.
Comments
Leave a comment