Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

Understand why customers are loyal to a particular service firm.

Answered: 1 week ago