For this assignment you are to write a simulation of a busy intersection at rush hour. Inspiration can be found in the Santa Claus program, and the airport simulation in the text.
Traffic is controlled by a light.
Cars facing a green light may turn either left or right or go straight. Right turns on red are not permitted, and everyone obeys the traffic lights. This is not a simulation of Boston traffic. Evidently, there are four queues to maintain. Cars arrive in each of the queues on the average once every five seconds.