Answered step by step
Verified Expert Solution
Link Copied!

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:
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

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

Define critical thinking and list its seven standards.

Answered: 1 week ago