Bull rules for breaking ties in the event list run both


Modify and expand the event-driven simulation program that you wrote in Programming Problem 6. a. Add an operation that displays the event list, and use it to check your hand trace in Exercise 11. b. Add some statistics to the simulation. For example, compute the maximum wait in line, the average length of the line, and the maximum length of the line. c. Modify the simulation so that it accounts for three tellers, each with a distinct line. You should keep in mind that there should be

• Three queues, one for each teller

• A rule that chooses a line when processing an arrival event (for example, enter the shortest line)

• Three distinct departure events, one for each line

• Rules for breaking ties in the event list Run both this simulation and the original simulation on several sets of input data. How do the statistics compare?

d. The bank is considering the following change: Instead of having three distinct lines (one for each teller), there will be a single line for the three tellers. The person at the front of the line will go to the first available teller. Modify the simulation of part c to account for this variation. Run both simulations on several sets of input data. How do the various statistics compare (averages and maximums)? What can you conclude about having a single line as opposed to having distinct lines?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Bull rules for breaking ties in the event list run both
Reference No:- TGS01422442

Expected delivery within 24 Hours