Question: This second task in building your restaurant software will be to add arrays to hold pieces of information relevant to the restaurant. You should modify
This second task in building your restaurant software will be to add arrays to hold pieces of information relevant to the restaurant.
You should modify the prior submission to include:
An array of menu items
An array of menu item prices
Print a message asking what the uses wants to do: calculate a total, add an item to the menu, delete an item from the menu, or change the price of an item
If the user wants to calculate a total:
print a message asking for items ordered and a list of items that are offered.
use a loop to enter multiple items.
calculate the total based on the items entered.
print the total.
If the user wants to add an item:
ask the user to add the item name and price.
If the user wants to delete an item:
ask the user what item to delete.
If the user wants to change the price of an item:
ask the user what item and what the new price is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
