Write a program to simulate a Division of Motor Vehicle (DMV) office. Here are the details:
1) Customers will enter the building at a rate of 1 every 1 – 5 minutes
2) There are three clerks to help customers. Each clerk can process a customer every 5 – 8 minutes.
Your program needs to keep track of how many customers were processed and how many customers were not helped in the amount of time the program runs.
Suggestions:
1) Set up a queue for the customers. Use a random number from 1 – 5 to simulate when the next customer walks in.
2) Keep track of each clerk separately. This could be done in several ways. The easiest way would be to make a class for a clerk and then make three objects of that [login to view URL] sure to add comments: