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

I have two different classes, Accounts and Transactions, where constructs and ge

ID: 3541477 • Letter: I

Question

I have two different classes, Accounts and Transactions, where constructs and getters were established. Both have a binary file of type .dat that needs to be read into a seperate class. Accounts has 5 fields that include: acccountNumber (int), firstName (String), middleInitial(String), lastName(String), and balance(doube). Transactions have 4 fields that include: accountNumber(int), date(String), type[(String) which is for withdrawl or deposite)], and amount(double).

Now the way my teacher has this set up is you use FIleInputStream, DataInputStream, ObjectInputStream. This is the part I do not know how to do. I am just confused on the whole situation. He wants us to create two other classes called AccountReader and TransactionReader.


Here are the two classes that I already have and the two .dat files.

Accounts class (http://codepad.org/GZx3NKdk) and Accounts.dat (http://codepad.org/dg2MqvPp)

Transaction class (http://codepad.org/JECUsAgs) and Transactions.dat (http://codepad.org/pRJj6SkA)

If you need more information just let me know and hopefully I can give you the information.

I am offering 1500 points because I know this could take some time but I will only give points if you actually help me. Thanks.

Explanation / Answer

Hey, can be done. No problems. What is your deadline?