Question: Very short description: Write a program that tracks inventory for a pizza establishment More detailed description: Your program must print the current inventory and then
Very short description: Write a program that tracks inventory for a pizza establishment More detailed description: Your program must print the current inventory and then allow the user to enter a pizza order from a menu. You must adjust the inventory values based on the type of pizza ordered. Finally, you will print the updated inventory values. The program must allow the user to choose the pizza type from the menu below and how many of that pizza type to order. The user may specify from 1 to 10 pizzas. The menu is: I. Cheese Pizza 2. Pepperoni Pizza 3. Sausage Pizza 4. Veggie Pizza 5. None The veggie pizza has green peppers, b olives and mushrooms. The supplies you must track for the inventory are: dough, sauce, cheese, pepperoni, sausage, green peppers, black olives, and mushrooms. Initialize the inventory values to 50 units of each. Each pizza will require the number of units of inventory specified below. Cheese pizza: 1 unit of dough. 1 unit of sauce, and 2 units of cheese Pepperoni pizza: 1 unit of dough, 1 unit of sauce, l unit of cheese, and l unit of pepperoni Sausage pizza: 1 unit of dough, l unit of sauce, 1 unit of cheese, and 1 unit of sausage Veggie pizza: 1 unit of dough, l unit of sauce, l unit of cheese, 1 unit of green peppers, lunit of black olives, and 1 unit of mushrooms. Program Requirements: Your program must do the following Print an introductory message at the beginning of the program to tell the user what the program does Print the initial inventory for the pizza establishment. Allow the user to select a pizza from the menu to order.Output an error message if the user makes an invalid menu selection (ie.. they type in 8). Allow the user to select how many of the type of pizza to order. Output an emor message if the user enters an invalid pizza amount (less than l orgreater than 10)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
