Question: write a simple python code to simulate single bank queue system ( one teller ) where Customer Arrival Times: Customers should arrive at the bank

write a simple python code to simulate single bank queue system (one teller) where Customer Arrival Times: Customers should arrive at the bank based on a uniform distribution between 1 to 5 minutes.
and Service Times with Probabilities below:
3 minutes service time with a probability of 30%.
5 minutes service time with a probability of 50%.
7 minutes service time with a probability of 20%.
Simulation Scope: The simulation should cover the arrival and service of 100 customers.
Prepare your simulation environment, setting initial conditions including the simulation clock, customer queue, and teller status (busy or idle).
the output is Metrics Calculation:
Average Waiting Time: Total waiting time divided by the number of customers.
Count of Waiting Customers: Total number of customers who had to wait.
Average Teller Idle Time: Total idle time divided by the duration of the simulation or the number of idle periods.
please be sure of this code has queue (fifo) and submit the complete source code of the simulation, including comments to explain the implementation logic (please explain each line of the code what does it do)
write a simple python code to simulate single

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 Accounting Questions!