Find Jobs
Hire Freelancers

Binary Heap

$30-5000 USD

Completed
Posted over 21 years ago

$30-5000 USD

Paid on delivery
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
Project ID: 2877829

About the project

4 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$9 USD in 14 days
4.9 (169 reviews)
5.9
5.9
4 freelancers are bidding on average $25 USD for this job
User Avatar
See private message.
$67.15 USD in 14 days
5.0 (80 reviews)
5.9
5.9
User Avatar
See private message.
$17 USD in 14 days
5.0 (25 reviews)
4.6
4.6
User Avatar
See private message.
$8.50 USD in 14 days
0.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
United States
5.0
8
Member since Jun 28, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.