#4. Write a program to help a local restaurant automate its breakfast billing sy
ID: 3533487 • Letter: #
Question
#4. Write a program to help a local restaurant automate its breakfast billing
system. The program should do the following:
a. Show the customer the different breakfast items offered by the restaurant.
b. Allow the customer to select more than one item from the menu.
c. Calculate and print the bill.
Assume that the restaurant offers the following breakfast items (the price
of each item is shown to the right of the item):
Plain Egg $1.45
Bacon and Egg $2.45
Muffin $0.99
French Toast $1.99
Fruit Basket $2.49
Cereal $0.69
Coffee $0.50
Tea $0.75
Your program must contain at least the
following functions:
Explanation / Answer
//Please Rate if i have helped you String *itemname[7]= {"Plain Egg", "Bacon and Egg", "Mufffin", "French Toast", "Fruit Basket", "Cereal", "Coffee","Tea"}; double price[7]= {1.45,2.45,0.99,1.99,2.49,0.69,0.5,0.75}; typedef struct menuItemType{ string menuitem; double menu_price;}c; void getdata(menuitem *item,string items,double price) { item->menuitem =items ; item->menu_price = price; } void showmenu(menuitem item[],length l) { printf("Welcome to Johnny's Restaurant"); for(int i=0;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.