Question: Write a java application to represent bank accounts. Test your program by creating at least two accounts and performing transactions in each. here are two
Write a java application to represent bank accounts. Test your program by creating at least two accounts and performing transactions in each.
here are two classes in this application: ManageAccounts and Account class. Methods used in these classes are shown in the UML diagram. You may add any extra variables as needed. Methods in the Account class can be declared as shown below:
public Account(String owner, long account, double initial)
public double deposit(double amount)
public double withdraw(double amount, double fee)
public double and interest()
public double getBalance()
public String toString() ManageAccounts class contains the main method.
(Note: balance with interest is calculated as balance += (balance * RATE) where RATE= 0.035)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
