Need help writing code using these hints A Ice cream store sales ice cream in 3
ID: 3913093 • Letter: N
Question
Need help writing code using these hints
A Ice cream store sales ice cream in 3 sizes of cups, small, medium and large. Cup Size Small cup $4.29 Medium $5.89 Large UNIT PRICE $6.49 Write an application for an Ice Cream shop that allow users to do following tasks. After finishing a task, display the menu again to allow users to continue to select other task until they select exit: ICE CREAM STORE 1. Sale Ice Cream 2. Total sale Ice cream today 3. Total sale ice cream in the month 0. EXIT TASK1: SALE ICE CREAM For each time sale Ice Cream, the application do the following Display the menu to allow users select the size of cup, then enter the number of cups to sale. -Users can continue select other size of cups until users select DONE SALE ICE CREAM 1. Small cup 2. Medium cup 3. Large cup 0. DONE Print out the receipt in the following format: ECEIPT SALE ICE CREAM ate: 83/18/18 mall: edium: arge 8.6 11.B 6.5 ax (8.25%): otal: 26.9 2.2 29.1Explanation / Answer
Output
ICE CREAM STORE
1. Sale Ice Cream
2. Total Sale Ice Cream today
3. Total Sale Ice Cream In Month
0. Exit
Please enter you choice: 1
ICE CREAM STORE
1. Small cup
2. Medium Cup
3. Large Cup
0. Done
Please enter the size of cup: 2
Please enter the number of medium cups you need: 2
ICE CREAM STORE
1. Small cup
2. Medium Cup
3. Large Cup
0. Done
Please enter the size of cup: 1
Please enter the number of small cups you need: 2
ICE CREAM STORE
1. Small cup
2. Medium Cup
3. Large Cup
0. Done
Please enter the size of cup: 3
Please enter the number of medium cups you need: 1
ICE CREAM STORE
1. Small cup
2. Medium Cup
3. Large Cup
0. Done
Please enter the size of cup: 0
RECEIPT SALE ICE CREAM
Date: 12/07/2018
Small: 2 8.58
Medium: 2 11.78
Large: 1 6.49
-------------------------------------------------------
SubTotal: 26.85
Tax(8.25%): 2.22
Total: 29.07
ICE CREAM STORE
1. Sale Ice Cream
2. Total Sale Ice Cream today
3. Total Sale Ice Cream In Month
0. Exit
Please enter you choice: 2
TOTAL SALE ICE CREAM REPORT
Date: 12/07/2018
Small: 2 8.58
Medium: 2 11.78
Large: 1 6.49
-------------------------------------------------------
SubTotal: 26.85
Tax(8.25%): 2.22
Total: 29.07
Do you want to save the sale today to file?(Y/N): y
ICE CREAM STORE
1. Sale Ice Cream
2. Total Sale Ice Cream today
3. Total Sale Ice Cream In Month
0. Exit
Please enter you choice: 3
Which month report do you want?(MMYYYY): 072018
TOTAL SALE ICE CREAM Month REPORT
Date: 07/2018
Small: 4 17.16
Medium: 4 23.56
Large: 2 12.98
-------------------------------------------------------
SubTotal: 53.70
Tax(8.25%): 4.43
Total: 107.40
ICE CREAM STORE
1. Sale Ice Cream
2. Total Sale Ice Cream today
3. Total Sale Ice Cream In Month
0. Exit
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.