$25
Simulation and modeling lab)
(a) Write code for simulation of a single-server queueing system. The input file provides mean interarrival time, mean service time, and number of customers. Three performance metrics average delay in queue, average number in queue, server utilization should be written in the output file. Also the final value of simulation clock (the time the simulation ends) when the stopping criterion (n customers have completed their delays in queue) is met should be written in the output file.
(b) For this task, you are going to vary the mean service time which is k times the mean interarrival time. Run the experiment for k = 0.5, 0.6, 0.7, 0.8, 0.9
k
average delay in queue
average
number in queue
server utilization
time the
simulation ended
0.5
0.6
0.7
0.8
0.9
(c) You have generated uniform and exponential random variates during this experiment. Display various statistics [min, max, median, P(x), F(x)] for them.