Traffic Simulation Project

 

 

 

Introduction

One of the most important uses of computer programs is in that of simulations.  Simulations are used for everything from predicting global climate change, population growth to testing of atomic weapons.  Before you start you may wish to explore several internet sites for comparable programs to determine the "look and feel" of your program.

 

 

 

 

 

 

 

 

 

The Program

 

Your task is to write a program that simulates the traffic at an intersection.  Your program will be expected to generate random traffic, change the frequency of the traffic and monitor the number of collisions that take place.  You will also need to develop a graphical user interface that shows what is going on with the traffic.  You should try to make your program as realistic as possible i.e. include in your parameters such factors as the random speed of cars, distance between cars, etc.

 

As in previous programs, turn in a listing of your source code, and several example runs of up to one hundred generations.   If you worked with others, be sure to include their names on your program.