Create a text file that contains account number 9-digit


Create a text file that contains account number (9-digit number), type (one of the two types: current denoted by CU or saving denoted by SA), balance (a floating point number greater than 0.0) . Add at least two accounts. For example, your text file may contain entries as follows:

277123001 CU 24751

277654002 SA 11425

Then write a C++ program that uses the file you created above to do the following:

a. Display all the contents of the file in a tabular format with the first row being a header row.

b. Write to a file that is called account numbers.txt only the account numbers from the read file.

c. Find out the total of balances.

Solution Preview :

Prepared by a verified Expert
Other Subject: Create a text file that contains account number 9-digit
Reference No:- TGS0664254

Now Priced at $40 (50% Discount)

Recommended (92%)

Rated (4.4/5)