Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

BACKGROUND OF EXERCISE In commercial data processing, it\'s common to have sever

ID: 3539229 • Letter: B

Question


BACKGROUND OF EXERCISE

In commercial data processing, it's common to have several files in each application system. In an accounts receivable system, for example, there's generally a master file containing detailed information about each customer, such as the customer's name, address, telephone number, outstanding balance, credit limit, discount terms, contract arrangements and possibly a condensed history of recent purchases and cash payments.

As transactions occurs (i.e., sales are made and payments arrive in the mail), information aboutthem is entered into a file. At the end of each business period (a month for some companies, a week for others, and a day in some cases), the file of transactions (called "trans.txt") is applied to the master file (called "oldmast.txt") to update each account's purchase and payment record. During an update, the master file is rewritten as the file "newmast.txt", which is then used at the end of the next business period to begin the updating process again.

File-matching programs must deal with certain problems that do not arise in single-file programs.

For example, a match does not always occur. If a customer on the master file has not made any purchases or cash payments in the current business period, no record for this customer will appear on the transaction file. Similarly, a customer who did make some purchases or cash payments could have just moved to this community, and if so, the company may not have had a chance to create a master record for this customer.

--------------------------------

ACTUAL QUESTION

Write a complete file-matching accounts receivable program. Use the account number on each file as the record key for matching purposes. Assume that each file is a sequential text file with records stored in increasing account-number order.


Full question can be found here (with instructions and picture references):

http://my.safaribooksonline.com/book/programming/java/9780132770873/files-streams-and-object-serialization/ch17lev1sec12

It's exercise 17.5

Explanation / Answer



It will take some time , i saw this post a lttle bit late, so give me some time