Question: 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:
1. New Customer
2. Order Pizza
3. Display Orders
4. Finalise Orders
5. Exit
How may I help you:
While the user has not entered \"5\", take keyboard input for the user\'s choice. If the user enters invalid input, output
\"Please only enter choices 1-5\". The choices should do the following:
1. Call the method to set the customer name.
2. 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.
3. Display the Order so far.
4. Save the Orders receipt. Then create a new empty Order.
5. If the user enters \"5\", 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:
1. Change Size
2. Change Pizza Base
3. Add Topping
4. Remove Topping
5. Order
6. Cancel
What would you like to do:
While the user has not entered \"5\" or \"6\", 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 1-6.\" If
the user enters \"5\", add the Pizza to the Order and return to the main menu. If the user enters \"6\", return to the main
menu without adding the Pizza.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!