Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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

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

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

Consider this article:...

Answered: 1 week ago

Question

=+j Improve the effectiveness of global and virtual teams.

Answered: 1 week ago