Sample Assignment: Traffic Simulation
(Chapter 8)

Data Structures and Other Objects Using C++
Third Edition
by Michael Main and Walter Savitch
ISBN 0-321-19716-X

The Assignment:
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 appendix of the textbook. 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.