Question: Bank Customers Data The assignment problem: You are asked to develop an application that prints a bank customers names, IDs, and accounts balances in different

 Bank Customers Data The assignment problem: You are asked to developan application that prints a bank customers names, IDs, and accounts balancesin different ways after calculating how much money they have in theirdifferent accounts. In this program you need to read a file of

Bank Customers Data The assignment problem: You are asked to develop an application that prints a bank customers names, IDs, and accounts balances in different ways after calculating how much money they have in their different accounts. In this program you need to read a file of customers data into different arrays, pass these arrays to functions as (array parameter), calculate the total balance for each customer, then print some information. The input file "input.txt" contains the following information (ID, first name, last name, savings account balance, checking account balance). You have to store these different columns in different arrays where each index represents a customer data. Preliminaries 1. We will consider the file contains 10 rows maximum. So all your arrays size must be at least 10 Since the size of all the arrays is 10, so it is better to create a constant variable with the value 10 than hard coding the arrays size. Hint: You will need to pass this constant to your size to limit your loops iterations. 2. functions later on as your array 3. Create five different arrays with different types based on the data in the file. 4. Create an "ifstream object to read the data from the input file. 5. Read and store the data from the input file in your arrays using a single "for" loop 6. Create a "switch" statement with four options and the output should be generated based on the chose option. Check the options bellovw . Print all customers data 2. Print names and IDs 3. Print accounts total Enter q/Q to quit Required functions: 1. A function "printCustomersData" should be called when the user chooses the first option. This function is of type void (it does not return anything). "printCustomersData" function accepts six parameters (five arrays and the size). This function should print a table of the customers data. Check the function prototype below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!