Question
C++ PLEASE DO NOT USE STRUCT USE CLASS Write a program to help a local restaurant automate its breakfast billing system. The program should do
C++ PLEASE DO NOT USE STRUCT USE CLASS
Write a program to help a local restaurant automate its breakfast billing system.
The program should do the following program should do the following:
a. Show the customer the different breakfasts 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 breakfasts (the price of each price of each item is shown to the right of the item):
Egg only $1.45
Bacon and egg $2.45
Bagel $0.99
French Toast $1.99
Fruit Basket $2.49
Cereal $0.69
Coffee $0.50
Tea$0.75
Use an array menuList of type menuItemType. Your program must contain at least the following functions:
Function getData: This function loads data into the menuList array.
Function showMenu: This function shows the different items offered by the restaurant and tells the user how to select the menu. restaurant and tells the user how to select the items. Function printCheck: This function calculates and prints the check. (Note that the billing amount should include a 5% tax. billing amount should include a 5% tax.)
A sample output is: Welcome to Johnny's Restaurant 1 Bacon and Egg $2.45 2 Muffin $1.99 1 Coffee $0.50 Tax $0.22
Amount Due $4.69
Format your output with two decimal places. T
he name of each item in the output must be left justified.
You may assume that the user selects only one item of a particular type.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Implement a class named RestaurantBill that stores the name of each item in the menu. of each of the dishes belonging to your Restaurant's menu and its price.
- Implement the operators in your class.
- The attribute where you store the name is of type pointer of type character, which is created dynamically
- Implement a dynamic array of objects of the type of your class, and initialize it with the dishes of the main menu. main menu dishes.
- Ask the user for the number of each of the desired dishes in the main menu. main menu.
- Perform a Binary search within the array to return the user's requested dish price. requested by the user.
- Calculate your price and print the invoice.
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