Problem

Modify and expand the event-driven simulation program that you wrote in Programming Proble...

Modify and expand the event-driven simulation program that you wrote in Programming Problem 6. Here are a few suggestions:

a. Add an operation that displays the event list, and use it to check your hand trace in Exercise 10.

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 tire following change: Instead of having three distinct lines (oire for each teller), there will be a single line for tire three tellers. The person at tire front of the line will go to the first available teller. Modify the simulation of Partc to account for this variation. Rtur both simulations oxr several sets of input data. How do tire various statistics compare (averages and nraxinrums)? What can you conclude about having a single line as opposed to having distinct lines?

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 8
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT