Using this information the program should request a user


Write a C++ program to read from a file and sort into seperate arrays

Bank customer's records are stored in a file and read into a set of arrays so that an individuals record can be accessed randomly by account number. Create the file by entering five customers records with each record consisting of an integer account number (starting with 1000), a first name having a max of 10 characters, a last name having a maximum of 15 characters and a floating point balance.

Once the file is created, write a C++ program that reads the records into four separate arrays. The starting address of any element in the account array can be calculated as the address of the first record in the array + (account number - 1000) *sizeof(int).

Using this information the program should request a user entered account number and display the corresponding name and account balance.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Using this information the program should request a user
Reference No:- TGS01246994

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)