Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Homework Assignment: Bank Queue SimulationOverview:This assignment requires you to simulate a bank queue system where customers arrive at random intervals and are served by bank

Homework Assignment: Bank Queue SimulationOverview:This assignment requires you to simulate a bank queue system where customers arrive at random intervals and are served by bank tellers. Unlike uniform service times, this simulation introduces variability in service durations based on predefined probabilities.Your primary objectives are to compute the average waiting time for customers, identify the number of customers who endure any waiting, and determine the average idle time of the teller(s).Objectives:- Average Customer Waiting Time: Calculate the average time customers spend waiting in the queue before being served.- Count of Waiting Customers: Determine the total number of customers who experience any waiting time.- Average Teller Idle Time: Calculate the average time that tellers spend without serving, indicating periods of inactivity.Detailed Requirements- Customer Arrival Times: Customers should arrive at the bank based on a uniform distribution between 1 to 5 minutes.- Service Times with Probabilities:*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.Simulation StepsInitialization:Prepare your simulation environment, setting initial conditions including the simulation clock, customer queue, and teller status (busy or idle).Simulating Arrivals:Generate 100 customer arrivals using a uniform distribution for inter-arrival times (1to 5 minutes.Assigning Service Times:For each customer, assign service times based on the defined probabilities (30% for 3 minutes, 50% for 5 minutes, and 20% for 7 minutes).Processing Customers:- For each arriving customer, determine if they can be served immediately or must wait in the queue.- Calculate the service start time, end time, and waiting time for each customer.- Update the simulation clock and teller status accordingly.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.Implementation Guidance- Choose an appropriate programming language that supports random number generation and basic statistical operations (e.g., C++).- Use loops and conditionals to manage the simulation flow and to implement the logic for service time selection based on probabilities.Maintain counters and accumulators for calculating the required metrics.Ensure your code is well-organized and commented to explain the simulation logic and metric calculations.Submission RequirementsSource Code: Submit the complete source code of your simulation, including comments to explain the implementation logic.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Ethics in Information Technology

Authors: George Reynolds

5th edition

1285197151, 9781305142992 , 978-1285197159

More Books

Students also viewed these General Management questions

Question

What does Plato means by scientific causation?

Answered: 1 week ago

Question

solve this? x**2+6x+5 =0

Answered: 1 week ago

Question

Describe the small intestine?

Answered: 1 week ago