Menu

[solved]-Write C Program Manage Sales System Fast Food Restaurant Main User Customer Restaurant Bui Q39087351

Write a C++ program to manage a Sales System for a Fast foodrestaurant. The main user is a customer of the restaurant.
Build Specifications (56 points)
1. The system should load a menu of all items that the restaurantoffers. The items offered are in three categories: Drinks,Sandwiches, and Appetizers.
2. A customer can search the menu: The customer can search the menuby using the name of the item.
3. A user can add or remove an item to/from the cart.
4. The system must enable the customer to pay for their meal andissue a receipt that shows the amount, sales tax (6%) and the finaltotal.
5. The customer can also buy meals made from a combination of itemsfrom the three different categories.
6. Add the number of calories to each item. Use this property toshow the customer the number of calories in their final meal alongwith the price.
7. The system must enable the customer to sort the meals based onthe number of calories.

The program must have the following properties (20 points):

– You should do error handling (Ex: print out a suitable message ifthe item is not found) – You should use inheritance, andpolymorphism. Example: You can design a generic item class, thendesign derived classes for different kinds of items. The item classmay have the following data members: Name (string), price (floatingnumber). An example of an inherited class can be Drink, where youcan add Type (string).

Also, design a menu (should still appear until the exit option ischosen) in the Main program that has the following optionsimplemented to test your classes’ functionality (12 points):
1. Search items.

2. Add items to the cart.

3. Remove items from cart.

4. View meals and offers.

5. View Cart.

6. Exit.

Expert Answer


Answer to Write a C++ program to manage a Sales System for a Fast food restaurant. The main user is a customer of the restaurant. … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *