I am currently assigned a project to simulate a carwash in C++ using a priority queue and a heap. Basic synopsis:
1. a car enters the carwash.
2. if there are no parking spaces the car departs (must keep track of number of
cars that depart without getting a wash).
3. if there is parking the car parks and waits for the next available wash bay.
4. The service (wash, wax, and or vacuum) is performed and the vehicle departs and
the process continues.
The simulation must keep track of all of the above actions for a final report containing
number of customers who successfully complete each type of task as well as the number of
customers who depart without doing anything.
I've got the queue for parking spaces operating but am having problems even getting started with the priority queue and the heap usage. Any assistance would be appreciated.