Closed Thread
Results 1 to 3 of 3

Thread: My friend need help on this problem!

  1. #1
    malchik is offline Newbie
    Join Date
    Oct 2008
    Posts
    1
    Rep Power
    0

    Question My friend need help on this problem!

    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 ;(

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: My friend need help on this problem!

    Sure, we will help her. How far along has she gotten, where is she stuck and can you post her code please?

  4. #3
    Steve.L's Avatar
    Steve.L is offline Programming Expert
    Join Date
    Sep 2008
    Location
    Ottawa,ON
    Posts
    445
    Rep Power
    15

    Re: My friend need help on this problem!

    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.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Looking for a friend!
    By Epatron in forum General Programming
    Replies: 0
    Last Post: 10-02-2011, 10:04 AM
  2. I'm looking for a friend
    By billow09 in forum PHP Development
    Replies: 2
    Last Post: 09-27-2011, 03:32 AM
  3. What`s the problem with friend class T?
    By fondi in forum C and C++
    Replies: 9
    Last Post: 10-05-2009, 04:20 PM
  4. your new friend
    By hkp in forum Introductions
    Replies: 9
    Last Post: 05-25-2009, 05:58 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts