Credit Processing Program
Consider the following problem statement:
Create a credit-processing program capable of storing at most 100 fixed-length records for a company that can have up to 100 customers. Each record should consist of an account number that acts as the record key, a last name, a first name and a balance. The program should be able to update an account, insert a new account, delete an account and insert all the account records into a formatted text file for printing.
The next few sections create this credit-processing program. Figure 14.11 illustrates opening a random-access file, defining the record format using an object of class
ClientData (Figs. 14.9–14.10) and writing data to the disk in binary format. This program initializes ...