The simulation should last for 4 hours – 240 minutes.
For each customer generate a random number for their arrival time, and the service time – e.g.
Customer 1 – 35 – 14
Customer 2 – 38 – 12
Where Customer 1 arrived at minute 35, and took 14 minutes for service.
Your program should output the experience of each customer, and calculate the average waiting time. Assume we use the data above, and there is 1 cashier. The output would be:-
Customer 1 – arrived 35 – wait time 0 – left 49.
Customer 2 – arrived 38 – wait time 11 – left 61.
Average wait time – 5.5 minutes.