Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write the Python for this Main Menu The main menu will ask the user to enter one of the following options: 1 . New Customer
Write the Python for this Main Menu
The main menu will ask the user to enter one of the following options:
New Customer
Order Pizza
Display Orders
Finalise Orders
Exit
How may I help you:
While the user has not entered take keyboard input for the user\'s choice. If the user enters invalid input, output
\"Please only enter choices The choices should do the following:
Call the method to set the customer name.
Call the method to select a Pizza from the pizza menu. If the user enters an invalid pizza name, output We do
not make that kind of pizza\" and return to the main menu. If the user successfully chooses a Pizza, output the
Pizza Submenu. If the customer name has not been entered, raise an Exception with the error message Must
enter customer name before ordering
Display the Order so far.
Save the Orders receipt. Then create a new empty Order.
If the user enters output \"Have a good day : and end the program.
Pizza Submenu
The Pizza Submenu will ask the user to enter one of the following options:
Change Size
Change Pizza Base
Add Topping
Remove Topping
Order
Cancel
What would you like to do:
While the user has not entered or take keyboard input for the users choice. Call the PizzaShop method that is
appropriate to the user\'s choice. If the user has not entered a valid choice, output \"Please only enter choices If
the user enters add the Pizza to the Order and return to the main menu. If the user enters return to the main
menu without adding the Pizza.
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