java code

profileWernerrab
CheckingAccount_Acharya.java

//CheckingAccount_Acharya.java package Pack; class CheckingAccount_Acharya extends Account_Acharya { public double service_fee ; public CheckingAccount_Acharya () { super (); } public CheckingAccount_Acharya ( String var , String first , double second , double fee ) { super ( var , first , second ); service_fee = fee ; //variables for user input } public void openAccount () { System . out . println ( "Account Type: Checking Account" ); super . openAccount (); //for new Account } public void checksecond () { System . out . println ( "Account Type: Checking Account" ); super . checksecond (); //checks balance in the Account } public void deposit ( double amount ) { System . out . println ( "Account Type: Checking Account" ); super . deposit ( amount ); //deposits amount to each Account } public void withdraw ( double amount ) { System . out . println ( "Account Type: Checking Account" ); super . withdraw ( amount ); //reduce withdrawn amount } public void calculateFee () { super . balance -= super . balance * service_fee * 0.01 ; } //calculates interest rate on the Account public void printStatement () { calculateFee (); System . out . println ( "Account Type: Checking Account" ); System . out . println ( "Service Fee: " + service_fee ); super . printStatement (); } }