Selection with a for loop
Write a well structured program with programmer comments and user prompts that:
1. Allows the user to enter the number of times they wish to repeat the program
2. Allows the user to enter a integer drink size represented by the following option and cost:
(4)Xtra Large $4.00
3. Allows the user to enter the number of the above drinks that he/she wishes to purchase.
4. Calculates and outputs the HST 13% and the total cost of the drink order.
Enter the number of times to repeat the program 2
Enter drink size 2
Enter the number of drinks 4
Cost $ 8.00 HST $ 1.04 Total $ 9.04
Enter drink size 1
Enter the number of drinks 1
Cost $ 1.50 HST $ 0.20 Total $ 1.70
HINT! use field format to round to 2 decimal places
Re: Selection with a for loop
Did you have a question, or do you just want to trade homework assignments?
Please see the link in my signature on asking questions the smart way, then try again.