Difference between the arrival time and simulation time


Discuss the following:

Q: 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

C1 0
C2 11
C3 18
C4 22
C5 27
C6 23
C7 32
C8 38
C9 47
C10 55

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Difference between the arrival time and simulation time
Reference No:- TGS01936943

Now Priced at $20 (50% Discount)

Recommended (91%)

Rated (4.3/5)