Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Task: Using C++, create a restaurant order management program that meets the fol

ID: 3925283 • Letter: T

Question

Task: Using C++, create a restaurant order management program that meets the following requirements:

1) The user can create up to 10 orders

2) Each order has its own ID, contains the name of the server who took the order and the date and time it was taken

3) Each order contains up to 20 items

4) An item can be food or drink and each one has at least a name and a base price

5) The different kinds of food the restaurant has is an appetizer, entree or dessert

6) An appetizer can be free (base price not applied at order)

7) An entree is either classified as beef, poultry, seafood or vegetarian with an optional side dish

8) A side dish is either potatoes or salad and has its own custom price established at the time of the order

9) A dessert can feed between 1-4 people (base price stays the same regardless of number of people)

10) Drinks are either alcoholic or nonalcoholic

11) Alcoholic drinks have a 5% added tax added to its base price

12) Nonalcoholic drinks are refillable and the restaurant wants to track how many refills are requested on an order The program starts with a menu to ask the user to create an order, close order and print receipt, display order summary and exit program.

The menu options are handled as follows: 13) When creating an order, the program asks for the server name, date and time of order. The order is automatically considered open and the user then enters all items as appropriate for the order. When finished, the program assigns and shows its order ID and then returns to the main menu

14) When closing an order and printing a receipt, the program shows all the open orders by ID and server name and asks the user which one to close. The user enters the ID of the order to close and after doing so, the order is considered closed and all items with their prices and the final total of the order is displayed. The program then returns to the main menu

15) When displaying order summary, show the following data: number of orders that are currently open and closed, counts of each item type ordered from all orders, how many free appetizers have been ordered, how many people are fed from all desserts ordered, and total price of all orders placed. The program then returns to the main menu

Programming requirements: You must come up with your own class design and demonstrate use of inheritance and polymorphism in this assignment. There may be opportunities to use composition as well, but you are not required to use that in this assignment.

Explanation / Answer

#include #include using namespace std; // Function Prototypes void showMenu(); void showFees(double, int); int main() { int choice; //To Hold Menu Choice double quantity = 1; //contants for menu choices const int hamburgerChoice = 1; const int hotdogChoice = 2; const int peanutsChoice = 3; const int popcornChoice = 4; const int sodaChoice = 5; const int chipsChoice = 6; const int waterChoice = 7; const int endOrderChoice = 8; //constants for menu prices const double hamburger = 6.00; const double hotdog = 4.50; const double peanuts = 3.75; const double popcorn = 5.50; const double soda = 2.80; const double chips = 1.00; const double water = 2.00; //set precision cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote