Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need in c++ This program is designed to get you intimately familiar with managing a queue. in the form of a bank-teller's line! You will

Need in c++
image text in transcribed
image text in transcribed
This program is designed to get you intimately familiar with managing a queue. in the form of a bank-teller's line! You will implement a queuing system, which in general, consists of servers (tellers) and a queue of objects to be served (customers). I. The goal is to compute the average wait time - how long a customer waits until his transaction is performed by the bank-teller. We need to know 4 things to simulate a queuing system: 1. The number of events (2 in this case-arrivals and departures) and how they affect the system 2. The number of servers (start with one and then add more, up to 3). 3. The distribution of arrival times (for example, a customer might arrive approximately every 5 minutes) 4. The expected service time. For example, 7 minutes on average with a minimum of 4 and maximum of 9. This can be done with a random number generator, start with a constant 7 minutes and introduce the random service time after verifying the program. Note: Changing the values of these parameters will affect the average wait time II. To simulate the passing of a unit of time (a minute for example) we increment the clock and run the simulation for a predetermined amount of time say 500 minutes i.e. use a loop For each value of the clock (say 1-100) the following actions are processed (loop body) 1. If a customer arrives they enter the back of the line (the queue) and their arrival time is stored 2. If a teller is free and someone is waiting, the customer at the front of the line moves to the teller and the service time is initialized (to 5 for example) and the customer's total wait time can be determined

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

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions