Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Visual C++, You are asked to develop an application that prints a bank customers names, IDs, and accounts balances in different ways after calculating

In Visual C++,

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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 I. We will consider the file contains 10 rows maximum. So all your arrays size must be at least 10. 2. 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 functions later on as your array size to limit your loops iterations 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 below: 1. Print all customers data 2. Print names and IDs 3. Print accounts total 4. 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

Step: 3

blur-text-image

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

The World Wide Web And Databases International Workshop Webdb 98 Valencia Spain March 27 28 1998 Selected Papers Lncs 1590

Authors: Paolo Atzeni ,Alberto Mendelzon ,Giansalvatore Mecca

1st Edition

3540658904, 978-3540658900

More Books

Students also viewed these Databases questions