Question

In: Computer Science

I will be creating a simulation of the reception of a bank in C++ (based off...

I will be creating a simulation of the reception of a bank in C++ (based off the requirements listed below). I plan to develop a test plan that I will use to make sure the key requirements are all covered by a test case.

*I just need help defining how each of the requirements below can be tested. I can use a numbering system to map each requirement to the appropriate test case(s). High level information would be appreciated. I can elaborate on the details. I just need assistance identifying how I can test the requirements below.

Requirements for my simulation are as follows:

  • 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

Solutions

Expert Solution

Ans) If there is no customer all teller should be down.

let cust_no = number of customer at the time( integer )

if 4>=cust_no > 0 get first teller.

since they are taking random amount of service time the code written in c++ shoud take ram and execution time of each part of code should be less and the interface should be interactive with customer , the c++ codes should be distributted in classes and packages based on different functionalities so that on time running code will be less. there should be a fixed time for a customer if he takes more than that refix the teller and call next. to test this we can take a integer map with different values if value is less than fixed amount of time wait or process the teller for that much time and by completion action of customer refix the teller for next person.

for getting up and down the tellers we again take the integer list or map with different values as cust_no

if list[i] > 4 get teller second

if list[i] > 8 get teller third

if list[i] <= 8 and third teller is up then down the teller third

if list[i] <= 4 and second teller is up then down the teller third

create an object which contain the following attributes aduring customer using teller

add this objects in list for testing this we can create attributes related with

  • Last name of the customer
    • Amount of money involved
    • Time of arrival
  • Average waiting time per customers
  • Average number of customers waiting sfdsfsd

and sort accrdingly..

since customer comming at random time the first customer can up the first teller

switch main controller of teller at 10 am and with recording the sorted values down the teller at 1pm


Related Solutions

simulate the reception of a bank in C++ . You will have customers requesting transactions (open...
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...
I'm running a single cylinder engine simulation using ADAMS/View to determine the torque output based off...
I'm running a single cylinder engine simulation using ADAMS/View to determine the torque output based off of the combustion force which needs to be given as a function of time. I'm having trouble with the setup for the combustion force function setup. Can someone explain how to set up such a function?
How do I write a C# and a C++ code for creating a character array containing...
How do I write a C# and a C++ code for creating a character array containing the characters 'p', 'i', 'n','e','P','I','N','E' only and then using these lower and capital case letter character generate all possible combinations like PInE or PinE or PIne or PINE or piNE etc. and only in this order so if this order is created eg. NeIP or EnPi or NeIP or IPnE and on. You can generate all the combinations randomly by creating the word pine...
Hello this is for C++ language. I am currently stuck on creating my api for Day...
Hello this is for C++ language. I am currently stuck on creating my api for Day Trading Stocks. as follows I need an api for *//Function Signature * * parameter: * * Return Value: ** *// Write the following function taking in an integer vector (vector &prices) consisting of all prices, in chronological order, for an hypothetical instrument. Your function recommends the maximum profit an investor can make by placing AT MOST one buy and one sell order in the...
I need the Income Statement, Retained Earnings Statement, and Balance Sheet, based off of this information!...
I need the Income Statement, Retained Earnings Statement, and Balance Sheet, based off of this information! There are five empty slots under the expenses column in the income statement that is especially confusing me. Problem 1-3A On May 1, Sheffield Corp., a company that provides flying lessons, was started by using common stock in exchange for cash of $45,350. Following are the assets and liabilities of the company on May 31, 2019, and the revenues and expenses for the month...
C# Yahtzee Program I am creating a Yahtzee program where you have the option to choose...
C# Yahtzee Program I am creating a Yahtzee program where you have the option to choose 5 or more dice that will be rolled. I just need help trying to create a random dice roll and seeding it. Could you give me some code examples of getting a dice roll of a six sided die that won't display similar results.
Molecular dynamic simulation of protein- ligand complex. How do I set up a molecular dynamic simulation...
Molecular dynamic simulation of protein- ligand complex. How do I set up a molecular dynamic simulation for a protein- ligand complex with a cobalt in the 2++ state? In other words, are there topology and parameter files that contain parameter for cobalt ion which are compatible with NAMD?
Based on the essay "Killing the I Bank", describe how changes in technology and market practice...
Based on the essay "Killing the I Bank", describe how changes in technology and market practice are affecting . . .                 a.     Underwriting of shares.                 b.     Mergers & Acquisitions
2. Based on initial guesses, a mesh for a CFD simulation is set up for an...
2. Based on initial guesses, a mesh for a CFD simulation is set up for an external ow around an object. The ow does not experience signicant separation on the body surface. The results yield y+ values between 4 and 40 on the the body surface. Explain why this result is not adequate. Explain how you would proceed to improve the results, and how you would know when they are acceptable.
Based on your readings and work with the InnRoad Simulation, what are key reports for the...
Based on your readings and work with the InnRoad Simulation, what are key reports for the housekeeping and maintenance departments
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT