Question: It must be implemented in java please. Thank you Data Structures (CIS) M. Lowenthal put oud the scuurce coENT AEV The ABC Hardware Company* has

It must be implemented in java please. Thank you
Data Structures (CIS) M. Lowenthal put oud the scuurce coENT AEV The ABC Hardware Company* has hired you to wrte a program for it's Accounts Receivable department (AR are accounts that owe money to the company because they have purchased ltems and have not yet paid for them) There are two types of input data 1) A master file in ascending order by customer number (customer numbers are 4 digits long). The fie also contains a 20 character customer name and a balance due. 2) A transaction file that contains records of each transaction. This file is also in ascending order by customer number. There shouid be more than one transaction record per master record. Each related group of data in a file is called a record. A record should be stored in a structure Each record starts with a character, o for order or "P for payment. Each record also contains the four-dight customer number, a four-digit transaction number, and up to three more values: If the code is O, the record contains the tem ordered (20 characters), the quantity ordered (an integer) plus the cost of the item. (You must mutiply to get the total cost) If the code is "Pn, the record contains the amount of the payment. You are to read in records one at a time from the two files and use the transaction file records to update the master file. Process all transaction records for each master record belore going on to the neot master record. If the transaction record contains an "O" in column 1, calculate the order amount and add it to the balance due. I1 the record contains a "PM in column 1, subtract the payment from the balance due. Keep a nunning total of the AVR Balance of ABC Company (That is the sum of the balances due for each customer. Your program should. Check for errors such as duplicate master records or records in the transaction file that do not file. appear in the master After processing a master record and all It's transactions the program should prepare an invoice for each customer which lists the customer name, number, previous balance (balance before transactions were performed), all transactions, and the final balance due (balance ater transactions are perforned. -The output should look something like this.. CUSTOMER NAME CUSTOMER NUMBER PREVIOUS BALANCE $ xxxxx TRANSACTION # TRANSACTION # TRANSACTION # TRANSACTION # ITEM ORDERED ITEM ORDERED PAYMENT $ORDER AMOUNT $ORDER AMOUNT $ PAYMENT AMOUNT TEM ORDERED ORDER AMOUNT BALANCE DUE Dont forget, payments reduce the balance and orders increase it. You are to create your own data using at least 7 customers with an average of 5 transactions each
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
