Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

USE one of the two queue data structures (array or linked structure). Write a pr

ID: 3634193 • Letter: U

Question

USE one of the two queue data structures (array or linked structure).
Write a program to simulate a Division of Motor Vehicle (DMV) office. Here are the details:
1.) Customer will enter the building at a rate of 1 every 1-5minutes
2.) There are three clerks to help customers. Each clerk can process a customer every 5-8 minutes.
The 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.
Hint: 1) set up a queue for the customers. Use a random number from 1-5 to stimulate when the next customer walks in. 2) Keep track of each clerk separately. One way to do this-make a class for a clerk and then make three objects of that class.

Explanation / Answer

I know how to write the random number and how to keep track of the clerks to write the random number import java.util.Random; then something like this Random myRandomizer = new Random(); for(int i = 1; i