You are to create a computer program that will manage a restaurant ordering process. Here are the processes to be automated.
1. Record an order into the system
2. Calculate the total cost of order and printing of receipt.
3. Schedule an order into a queue. The order processing is first in first out.
4. Update order record once the order has being prepared by chef.
5. Update order has being delivered/completed
6. Record all order transaction into a transaction file
7. At the end of business day, your system will generate a summary report about the business that day. The summary report include the following: total sales, total number of orders, and total number of orders for each item in the restaurant menu. This report can be generated from the transaction file.
The program will perform the following functions:
1. Read data from an input file that contains the restaurant menu. Sort the record according to item ID. Display the restaurant menu on screen and allow waiter to choose the item or items for an order. (Note: To simplify the programming task, assume there are only 15 items on the menu, and you can display all the items in the menu in one screen.) You would assume that each menu contains the following: Item ID, dish name, price. Design the necessary data structure and/or function to display the menu.
2. The program will allow the user to perform the following functions interactively:
(a) Allow user to view the menu and select menu items as part of order.
For every order your program will capture the following field: order number, order list, total cost of order, payment status (paid, unpaid), order status (in queue, being cook, ready for delivery)
(b) The system will maintain a queue to manage the sequence of processing the order using first in fist out method.
(c) Allow the user (cook, chef) to change status of particular list item. You would assume there are several cooks/chefs who are preparing the meal. Since each order may have more than one items you have to design a way to allow each cook/chef to take ownership of preparing an item and change the status of the item in order list.
The possible status is: waiting in queue, being prepare, completed.
(d) Once the status of an order is all completed, i.e. all items in the order list have being completed, then the order status is changed to complete. A message will be generate to inform the user where an order is ready for delivery.
(e) Allow the user to turn of the message about order ready for delivery. Further allow the user to print the invoice of the order.
Input file
The input file contains the detail of restaurant menu. The field are: Item ID, dish name, price. You would design your own data file.
Output file
The output will be the transaction file and another file containing daily summary report.
This is the question she got. Anyone would like to help her? Im not good with C++ programming ;(
Sure, we will help her. How far along has she gotten, where is she stuck and can you post her code please?
What Jordan is (politely) saying is that we do not do homework for you here. Sorry, go somewhere else if that's what you're looking for.
Otherwise, post what you are (or she is) having trouble with, and we will help you to better understand the problem and solve it.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks