Use the procedures in Exercises 3 and 4 to simulate traffic at one intersection for
100 steps, each consisting of changing the direction of the light. For one of the traffic queues, compute the average number of vehicles in the queue over the 100
steps. After each 10 steps, print the contents of the queue being averaged to see if
the results are reasonable.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here