Question
Main menu: Create a main user menu to display the main options to the user. User have the option to choose between 1 and 3.
Main menu: Create a main user menu to display the main options to the user. User have the option to choose between 1 and 3. The program will display an error message if user option is not within the valid selection (less than 1 and greater than 3). Think about using a conditional structure to serve the user choice. Invalid option (for e.g. 4) can be handled with default else block (please see sample I/O for error message). A main menu is as follows and detailed of each option is provided below: a. Order Salad: User can order three different types of salad base: veggie, seafood and protein-based. Like main menu any invalid option will display an error message. A sample menu is as follows along with price: Salad Menu 1. Vegetarian - $8.99 2. Seafood - $12.99 3. Protein - $10.99 b. Checkout: Option 2 Checkout in main menu will calculate the total cost along with the sales tax. To calculate the tax, you can multiply sales tax with total cost. For this program, you can assume VA sales tax 5.2%. c. Quit: Quit will simply exit the program once user hits 3. You can display a message for this option. (See below sample I/O) CODE IN PYTHON
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started