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

1. Create a JavaTransactionAccount class, so that one may store a name, an ID, a

ID: 3858197 • Letter: 1

Question

1. Create a JavaTransactionAccount class, so that one may store a name, an ID, account balance, and a list of transactions.

       Please maximize code re-use and extend your class from a Java class you have learned from this semester.   Then add additional information if some of them are not available from the super class.

2. Add a new instance field (called credit score) for each account.    Add new methods to process this field as needed.   

3. Implement a "Measurable" interface in your Java class so that we can find out the total # of transactions of each account.

4. Add codes in your java class to implement and override the .toString() method so that it returns the name, id, account balance and the total # of transactions. You do not need to include the detail listing of transactions in your .toString() output.

Explanation / Answer

Test class: