In this assignment you will use a binary heap to do event simulation.
## Deliverables
1. Create a class for a customer order at a restaurant.
2. Create a heap of orders.
3. The attached file(order_file) contains each customer order (arrival time, order number, and name).
4. Read the file placing each order in the heap.
5. Process the orders from the heap as follows:
a. 10% of orders are sent back to be cooked longer (takes 10 minutes)
b. 10% of orders are sent back for missing something (takes 5 minutes)
c. assume all customer meals take 15 minutes to cook
d. assume all customer meals take 30 minutes to eat
6. Print out order processing as shown below.
7. You MUST use my textbook author's code for the heap. URL: [login to view URL]~weiss/dsaa_c++/code/
Example output:
1 Order #104203 placed by customer Joe Smith
1 Order #105206 placed by customer Sue Jones
1 Order #107323 placed by customer Mike Martin
2 Order #106209 placed by customer Aaron Allen
16 Order #104203 ready for customer Joe Smith
16 Order #104203 is sent back, has item missing
16 Order #105206 ready for customer Sue Jones
16 Order #107323 ready for customer Mike Martin
17 Order #106209 ready for customer Aaron Allen
17 Order #106209 is sent back, needs to be cooked more
21 Order #104203 is ready again, missing item added
27 Order #106209 is ready again, cooked longer
46 Order #105206 customer Sue Jones finishes
46 Order #107323 customer Mike Martin finishes
51 Order #104203 customer Joe Smith finishes
57 Order #106209 customer Joe Smith finishes
## Platform
You should submit the program with all the files required to compile and run it.
It should be compilable on the apache servers running UNIX 3.03