subject

Write a supermarket cashier line simulation program based on the queue class implementation that operates under the following rules: 1. The cashier line starts with a single line. 2. If the length of the queue reaches 6, a second cashier line is opened and so on. 3. If the length of a queue reaches zero and 1 minute has passed since the queue length has reached zero then the cashier closes. (print a message: "Cashier Closed") 4. Simulate the following scenarios: (a) Assume the queue is initialized to 3 people at the beginning. People are coming at the rate of 2/min and leaving at the rate of 1/min. What is the status of the queue/queues after 10 minutes (how many queues and how many people in each)?(b) Assume the queue is initialized to 3 people at the beginning. People are coming at the rate of 2/min and leaving at the rate of 3/min. What is the status of the queue/queues after 2 & 5 minutes?(c) Print the number of people in each queue at every minute.(d) You do not have to simulate the queue based on the actual time (no timer is needed). Use the times to calculate what happens to the queue, i. e. what is the enqueue and dequeue rates and them simulate the queues by instantiating the queue objects. Follow through with building a table for case b and implement using queue objects.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
Someone wishes to run the software on another computer system that runs an operating system that does not support the software what can he do
Answers: 3
question
Computers and Technology, 24.06.2019 07:20
3pointsyou've found an image you want to insert into your slide presentation. youwant to make the image look more gray so that it looks like an older imagewhat would you need to adjust? 0.00o a. sizeo b. hueo c. contrasto d. tones
Answers: 2
question
Computers and Technology, 24.06.2019 10:30
This device directs network traffic. bridge hub nic repeater router switch
Answers: 3
question
Computers and Technology, 24.06.2019 12:30
Select all that apply. what two keys listed below should you use to enter data in an excel worksheet? tab backspace enter right arrow
Answers: 2
You know the right answer?
Write a supermarket cashier line simulation program based on the queue class implementation that ope...
Questions
question
Mathematics, 31.08.2020 20:01
question
English, 31.08.2020 20:01
question
Computers and Technology, 31.08.2020 20:01
question
Health, 31.08.2020 20:01
question
History, 31.08.2020 20:01
Questions on the website: 13722363