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, 21.06.2019 21:00
You should hand write your references on your resume.
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
You know the right answer?
Write a supermarket cashier line simulation program based on the queue class implementation that ope...
Questions
question
Social Studies, 10.12.2021 01:30
question
French, 10.12.2021 01:30
question
Mathematics, 10.12.2021 01:30
question
English, 10.12.2021 01:30
question
History, 10.12.2021 01:30
Questions on the website: 13722362