USE one of the two queue data structures (array or linked structure). Write a pr
ID: 3633653 • 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.
I Really need help.
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; iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.