Repeat Exercise 8, but instead use the following random events:
Customer 1 enters the line at time 0 with a transaction time of 4.Customer 2 enters the line at time 1 with a transaction time of 4.Customer 3 enters the line at time 3 with a transaction time of 1.Customer 4 enters the line at time 4 with a transaction time of 4.Customer 5 enters the line at time 9 with a transaction time of 3.Customer 6 enters the line at time 12 with a transaction time of 2.Customer 7 enters the line at time 13 with a transaction time of 1.
Exercise 8
Assume that customerLine is an instance of the class WaitLine, as given in Segment 10.8. The invocation customerLine.simulate(15, 0.5, 5) produces the following random events:
Customer 1 enters the line at time 6 with a transaction time of 3.Customer 2 enters the line at time 8 with a transaction time of 3.Customer 3 enters the line at time 10 with a transaction time of 1.Customer 4 enters the line at time 11 with a transaction time of 5.
During the simulation, how many customers are served, and what is their average waiting time?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.