The server removes a customer from the queue then generates


Customers walking into a bank are placed in a queue based on an arrival time distribution. Each customer has:

1. Customer number

2. Arrival time

3. Waiting time

4. Transaction time

The transaction time is based on what a customer decides to do, which can be one of the following:

1. Open a Certificate of Deposit (15 min)

2. Open a checking account (20 min)

3. Open a savings account (25 min)

4. Close checking account (15 min)

5. Closing savings account (17 min)

- The Server removes a customer from the queue then generates a random number between 1 and 5 to simulate a transaction type i.e. Open a checking account etc.

- The Server then sleeps for the duration of the transaction and then writes the customer information to a file.

- Waiting time is the difference between the arrival time and simulation time

Attachment:- CustomerArrival.txt

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: The server removes a customer from the queue then generates
Reference No:- TGS01246042

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)