Question: Could someone help me with the Python code but this is not a quiz kind of program. Its a Queing Theory. You will create a

Could someone help me with the Python code but this is not a quiz kind of program. Its a Queing Theory.

You will create a program that will follow the queuing theory of the Barbershop Problem. In this you will use ques and random number generator to complete this project. You will create three queues

Couch - the area where patron will wait just prior to getting their hair cut; Line - the area where patron will form a line just before reaching the couch; and Cashier - the area where patrons will line up to pay just before exiting the barbershop and after finishing their haircut.

You will create a container for the barbers chairs (list) . The wait times for the barbers will be random. Barber one will be the fastest and barber three will be the slowest. Randomize the wait times accordingly.

The cashier wait times will also vary randomly.

Barber wait times.

1 second (system time) = 5 minutes Max time 2 hours Min time 20 minutes.

Cashier wait time

1 second (system time) = 1 minute Max time 3 minutes Min time 1 minute.

For an Example:

Could someone help me with the Python code but this is not

there will be 3 barbers and 1 cashier to pay. Even though the last barber will be the slowest. And multiple customers at the barber shop. Being able to give a random time for the barbers while each are finished with each invidual customer in the barbershop. This program will be using the Queing theory. of different nodes and ques in the program.

New PatronBarber Finished Pay Cashier Cashier Chairs New PatronBarber Finished Pay Cashier Cashier Chairs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!