Solved by verified expert:A small grocery store has one checkout. You have been asked to write a program to simulate thegrocery store as it checks out customers. YOU ARE REQURED TO USE A QUEUE TO SOLVE THE PROBLEM.The queue program (qu.py). Here are some guidelines:1. A customer gets to the checkout every 1 – 5 minutes2. The checker can process one customer every 5 – 15 minutes (depends on how many groceriescustomer has – 10 items or less will take 5 minutes, 11 – 20 items will take 6 – 10 minutes, morethan 20 items will take 11 – 15 minutes – you will need two random numbers)3. The program should find the average wait time for customers and the number of customers leftin the queue4. Use the random number generator to get values for when customers get to the checkout andhow long the checker will take.5. You are not required to use classes, but it might make things easierExtra :Add another checkout. This one should be an express lane in which customers with10 or less items canuse it. Modify the original program so that it now has 2 queues, one for the regular checkout and onefor the express checkout. Express customers arrive at the checkout every 1-2 minutes. The expresschecker can process a customer every 2-5 minutes.You will need to figure out how to determine if the customer is express or not.The program should print out the same as above plus average wait time for express customers andnumber of express customers still in the queue.You must turn in both programs separately if you do the extra.
You will get a plagiarism-free paper and you can get an originality report upon request.
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more