Kapalı

Python Programming

A small grocery store has one checkout. You have been asked to write a program to simulate the

grocery store as it checks out customers. YOU ARE REQURED TO USE A QUEUE TO SOLVE THE PROBLEM.

The queue program ([url removed, login to view]). 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 – 10 items or less will take 5 minutes, 11 – 20 items will take 6 – 10 minutes, more

than 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 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

Extra :

Add another checkout. This one should be an express lane in which customers with10 or less items can

use it. Modify the original program so that it now has 2 queues, one for the regular checkout and one

for the express checkout. Express customers arrive at the checkout every 1-2 minutes. The express

checker 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 and

number of express customers still in the queue.

I also need the extra

class Queue:

def __init__(self):

[url removed, login to view] = []

def isEmpty(self):

return [url removed, login to view] == []

def enqueue(self, item):

[url removed, login to view](0, item)

def dequeue(self):

return [url removed, login to view]()

def size(self):

return len([url removed, login to view])

Beceriler: Python

Daha fazlasını görün: new to python programming want ide for python 3.5, enigma2 python programming, python programming exercises, python programming assignment, sweden python programming, python roulette wheel numbers, python programming outsourcing, python programming outsource, python google apps provisioning modify user, number sign astrict programming phone numbers, find pizza program python programming, python programming arcgis, openerp python programming, python programming karachi, programming predicting numbers, rapidshare python programming introduction computer science, crawl webpage webpage automatically python programming, python programming web bot project website, bid python programming projects

İşveren Hakkında:
( 0 değerlendirme ) United States

Proje NO: #15609263

8 freelancer bu iş için ortalamada 21$ teklif veriyor

Vadimwang

hi Relevant Skills and Experience Python Proposed Milestones $25 USD - 1

1 gün içinde 25$ USD
(9 Değerlendirme)
2.7
1 gün içinde 30$ USD
(3 Değerlendirme)
3.0
Programmer59

Hello Sir, I am expert in web development and I have more than 5 year's experience in this filed I have done many project in this filed Relevant Skills and Experience Expert in : Web Development Software Development m Daha fazlası

1 gün içinde 30$ USD
(6 Değerlendirme)
2.3
JRobertocv

Hi, i have already finished both tasks, (first part and extra) , if you choose me I'll comment the code in detail

1 gün içinde 20$ USD
(1 Değerlendirme)
0.8
fahirahD

My main programming language is Python, i believe that i write code that is short and sweet and,i'm always looking for bugs at each stage of my progression.I'm passionate by creating systems that works. I do not only Daha fazlası

1 gün içinde 20$ USD
(0 Değerlendirme)
0.0
Th3Niel

A proposal has not yet been provided

in 2 gün içinde10$ USD
(0 Değerlendirme)
0.0
vraigur

A proposal has not yet been provided

in 3 gün içinde20$ USD
(0 Değerlendirme)
0.0
nayaksowrabh04

I have been using Python since 3 years. I also have a good knowledge with the related APIs. Skills: Python, Data Structures

1 gün içinde 15$ USD
(0 Değerlendirme)
0.0