Data Structures and Other Objects Using C++
by Michael Main and Walter Savitch
Please write a program that uses the traffic data that
you gathered to simulate traffic at an intersection. The basic idea
of the simulation can be similar to the Car Wash Simulation in Section
8.2 of the textbook. The Car Wash Simulation had only one queue and
one averager, but
your Intersection Simulation will have one queue and one averager for
each different lane of traffic. You may use the
Chapter 8 or
The output of the program must tell
the average waiting time for cars in each of the lanes.
Note: Assume that each car takes seven seconds to exit the front of
the queue and get through the intersection.