Answered step by step
Verified Expert Solution
Question
1 Approved Answer
must be in cpp. thank you. Write a program to help a local restaurant automate its breakfast billing system. The program should do the following
must be in cpp. thank you.
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. Each time an item is selected, its quantity ordered is increased 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.98 French Toast $1.99 Fruit Basket $2.44 Cereal $0.69 Coffee $O.55 Tea $0.75 First, Define a struct, menultemType, with three components: menultem of type string, menuPrice of type double, menuOrdered of type integer. Then use an array, call it menuList, of the struct menultem Type. Your program must contain the following functions Function getData: This function loads the data into the array menulist. Function showMenu: This function shows the different items offered by the restaurant and tells the user how to select the tems Function printCheck: This function calculates and prints the check. (Note that the billing amount should include a 5% tax) A sample output in this case is Welcome to Johnny's Restaurant Qty Item Price $2.45 $1.98 $0.50 $0.25 $5.18 Bacon and Egg Muffin Coffee 2 Tax Amount Due
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started