CSC 311

Winter 2002

Assignment 4

Due: Wednesday, February 13th.

In this assignment, you are to simulate and evaluate two methods for serving customers waiting in a line.  The first method is one usually employed by banks: There is one line in which everyone waits and that is served by several tellers.  The second method is the one found in many McDonald's© restaurants: There is one line for every server.

You will write an entire program (i.e., it will have a main function) that will simulate for both methods customers arriving, waiting in line, and being served.  It will keep track of how long each customer waits before being served.  When the simulation has finished, the program will print for each method the number of customers served and the average wait time.  

We will analyze and partially design the solution in class.

What to submit

In one e-mail message, attach one file called simulate.cpp.