Question: Launguage is C++. Create a program for the following scenario. A supermarket has 9 cashiers. Customers arrive and leave at random time intervals. Use 0-5

Launguage is C++. Create a program for the following scenario. A supermarket has 9 cashiers. Customers arrive and leave at random time intervals. Use 0-5 seconds for this project. The goal of the program is to put the next arriving customer in the shortest queue out of the 9 cashiers. Your program will need to loop infinitely to simulate the passing of a certain amount of time. I suggest looping the program every 50 ms and clearing the screen and displaying all queues. Use a simple for loop as a delay. use some sort function whether it's quicksort or mergesort as well as some form of a queue, also use linked list and a binary search function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!