Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Customers arrive at the bank to make deposits or withdrawals and are served by a teller. The following information is kept in a structure about

Customers arrive at the bank to make deposits or withdrawals and are served by a teller.

The following information is kept in a structure about each customer.

1. A structure named customer contains at least the following information:

int ID; customerId;

customer first name // // as either an array of char or a string

customer last name; // as either an array of char or a string

double amount of deposit or withdrawal

char Transaction Type: Deposit or Withdrawal

int arrival time;

int service time

double Balance: Account balance

int TellerNo; // a value between 1 and 3

2. Create an input file containing the information of at least 35 customers.

3. Create an array of struct: read the customers data from the input file into the array.

4. Create a queue: you can use the standard library template for the queue or you can write your own code for the different queue operations. The queue stores data of type customer.

5. Also submit an output file of all output that is being sent to the console.

It needs to be in JavaScript for the programming language.

Actually my bad this code actually needs to be in C++ for programming not Javascript.

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_2

Step: 3

blur-text-image_3

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 Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions