Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

simulate the reception of a bank in C++ . You will have customers requesting transactions (open account, deposit money, close account, withdraw money). You are

simulate the reception of a bank in C++

. You will have customers requesting transactions (open account, deposit money, close account, withdraw money).

You are required to simulate per the following parameters and rules:

  • Customers coming at random times
  • Each customer will require random amount of service time
  • You may have 1-3 tellers based on the # of customers
  • Once you have more than 4 customers waiting you need to get the 2nd teller
  • Once you have more than 8 customers waiting you need to get the 3rd teller
  • Once the line size gets smaller, you should remove the tellers in opposite order of their addition (the last one joining should be the first one leaving)
  • The reception operates from 10:00 AM until 1:00 PM
  • At the end of the day, you need to run the following reports:
    • A list of customers coming along with the type of transactions they requested. This report should be sorted by:
      • Last name of the customer
      • Amount of money involved
      • Time of arrival
    • Average waiting time per customers
    • Average number of customers waiting

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

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

What has been your desire for leadership in CVS Health?

Answered: 1 week ago

Question

Question 5) Let n = N and Y Answered: 1 week ago

Answered: 1 week ago

Question

6. Explain the power of labels.

Answered: 1 week ago

Question

5. Give examples of variations in contextual rules.

Answered: 1 week ago

Question

f. What stereotypes were reinforced in the commercials?

Answered: 1 week ago