Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started