Key Points
Code must be object orientedCode must be thoroughly commentedThe project shall use the queue data structure learned in the course. Do not use the queue library.
Scenario
A supermarket has 9 cashiers. A customer arrives every 3 seconds and a customer leaves every 6 seconds. The goal of the program is to put the next arriving customer in the shortest queue out of the 9 cashier queues. Your program will need to loop infinitely to simulate the passing of a certain amount of time. I suggest looping the program every second and clearing the screen and displaying all queues. Use asterisks (*) to represent customers in the queues and a for loop to create a one second delay.
Submit your final as a single word document with the code and output screenshots.
Good luck!
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here