Program Assignment

Description

Having Trouble Meeting Your Deadline?

Get your assignment on Program Assignment  completed on time. avoid delay and – ORDER NOW

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) is located on the Instructor drive. Here are some guidelines:

1. A customer gets to the checkout every 1 – 5 minutes

2. The checker can process one customer every 5 – 15 minutes (depends on how many groceries

customer has)

3. The program should find the average wait time for customers and the number of customers left

in the queue

4. Use the random number generator to get values for when customers get to the checkout and

how long the checker will take.

5. You are not required to use classes, but it might make things easier


Add another checkout. This one should be an express lane in which customers with 15 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-4 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.

Explanation & Answer

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Order Now and we will direct you to our Order Page at Litessays. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

Similar Posts