Question: Write a program named Checkout.java that uses queues to compare three different models for self - checkout stations at a grocery store: One line for
Write a program named Checkout.java that uses queues to compare three different models for selfcheckout stations at a grocery store:
One line for customers, with n checkout stations. Customers go to the next available station.
n lines for customers, with one checkout station per line. Customers go to the line with the fewest number of customers.
n lines for customers, with one checkout station per line. Customers go to a randomly chosen line.
Run each system for two hours, with a clock that ticks every second. At the end of the two hours, report at least these statistics:
Number of customers served
Maximum queue length
Average customer waiting time how long it is from when they entered a queue until they are at the checkout station
and any other statistics that you thinking might be interesting or useful to report.
Here is the Queue.java Download Queue.javafile. You may use it as is or modify it to suit your purposes.
Run the program and write up a document summarizing your results.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
