Question: Write a program that displays a menu for the user to choose food items from, as follows: Welcome to Normans Burgers. Please enter the menu
Write a program that displays a menu for the user to choose food items from, as follows: Welcome to Normans Burgers. Please enter the menu item from the following list:
1. kid's meal $3.99 2. adult meal $6.99 3. drink $1.09
Use a switch statement:
a. If the user enters an option besides 1,2,3, display an error and exit (return 0) b. For the other options, ask the user how many of the selected choice they want:
How many would you like?
c. Read in the user's responses, and calculate the total to be paid:
Please pay $... at the next window. Thank you.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
