Rlab5
//SavingsAccount_Dawadi.java class SavingsAccount_Dawadi extends Accounts_Dawadi { public double interestRate; public SavingsAccount_Dawadi() { super(); } public SavingsAccount_Dawadi(String acc, String nam, double bal,double inter) { accNumber=acc; name=nam; balance=bal; interestRate = inter;//variables for user input of the following } public void openAccount() { System.out.println("Account Type: Saving Account"); super.openAccount(); //opens new account } public void checkBal() { System.out.println("Account Type: Saving Account"); super.checkBal(); //checks balance in the account } public void deposit(double amount) { System.out.println("Account Type: Saving Account"); super.deposit(amount); //deposits money to each account } public void withdraw(double amount) { System.out.println("Account Type: Saving Account"); super.withdraw(amount); //subtracts withdrawn money } public void calculateInterest() { super.balance+=super.balance*interestRate*0.01; }//calculates interest rate on the account public void printStatement() { calculateInterest(); System.out.println("Account Type: Saving Account"); System.out.println("Interest Rate: "+interestRate); super.printStatement(); } }