BankAccount, SavingsAccount and Customer Class
Programming
To be able to work on this assignment, you will need a functional version of the BankAccount, SavingsAccount and Customer class (which is in zip file). This assignment will require you to modify BankAccount and SavingsAccount.
Update BankAccount to
- Make BankAccount an abstract class.
- Add abstract method getMonthlyFeesAndInterest with return type double and access protected.
- Add method monthEndUpdate which doesn’t return anything but calls getMonthlyFeesAndInterest and updates the balance by the amount returned.(If the amount returned is negative, the balance is reduced, when the amount returned is positive the balance is increased.)It is possible that the account has a negative balance after this method is called.
Update SavingsAccount to
- Remove the method depositMonthlyInterest
- Override the getMonthlyFeesAndInterest method such that it returns the monthly interest.(Same computation as depositMonthlyInterest did, but the account balance is not changed.)
A JUnit test is provided for SavingsAccount (5 tests) and BankAccount (5 tests).Most of the tests for methods from previous assignments are removed for this individual assignment.
Run JUnit test!! to check the work.
Use JUnit Test to test the code. (When it’s run, it should say that there are no errors/failures)
- Create a new folder.
- Put junit-4.12.jar and hamcrest-core-1.3.jar in this folder (available below).
- Copy the test code with possible supporting files in this same folder.
- Create the file with code as required.
- Compile your code and the test code using the command javac -cp .;junit-4.12.jar:hamcrest-core-1.3.jar *.java
- Run the test using the command “java -cp .;junit-4.12.jar:hamcrest-core-1.3.jar org.junit.runner.JUnitCore BankAccountIA6Test” and “java -cp .;junit-4.12.jar:hamcrest-core-1.3.jar org.junit.runner.JUnitCore SavingAccountIA6Test”
if you have more question feel free to leave a message.
#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper
#Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational
