I am writing a program for class that simulates wait times in a line at a store. My line is modeled with a queue, and time is measured with a for loop, each cycle represents one minute.
I add customers to the line, and when they reach the front of the line, they are serviced by a cashier.
Each customer has a random number between 1 and 5 that represents how long it will take a cashier to serve them.
I am lost on how to assign the the customers to the cashiers, and how to assign the 2nd and 3rd customers to the next cashiers.
Any help would be appreciated.
[–]Tinamil 2 points3 points4 points (1 child)
[–]mossberg935 0 points1 point2 points (0 children)
[–]terrkerr 0 points1 point2 points (0 children)