Only change the code in red.

Copy and paste the code below in a class named Amain consisting on only a public static void main() method. Only modify the code in red.


        SavingsAccount saveAcct= new SavingsAccount(350,"Scott Brumbaugh");
        CheckingAccount checkAcct = new CheckingAccount (700,"David Paul Heimerman");
        StudentChecking sCheckAcct = new StudentChecking(100,"Craig Aking");
        InterestCheckingAccount intCkAcct = new InterestCheckingAccount(434,"Douglas Heck");
 
        System.out.println("My Name is kedigh");
        System.out.println("Account Balances");
        System.out.println(saveAcct.toString());
        System.out.println(checkAcct.toString());
        System.out.println(sCheckAcct.toString());
        System.out.println(intCkAcct.toString());            
        saveAcct.chargeMonthlyFee();
        checkAcct.chargeMonthlyFee();
        sCheckAcct.chargeMonthlyFee();
        intCkAcct.chargeMonthlyFee();
        System.out.println("Account Balances after Monthly Fees");
        System.out.println(saveAcct.toString());
        System.out.println(checkAcct.toString());
        System.out.println(sCheckAcct.toString());
        System.out.println(intCkAcct.toString());
        saveAcct.addInterest();
        intCkAcct.addInterest();
        System.out.println("Account Balances after Interest added");
        System.out.println(saveAcct.toString());
        System.out.println(checkAcct.toString());
        System.out.println(sCheckAcct.toString());
        System.out.println(intCkAcct.toString());      

 

The class above should output the following:

My Name is kedigh
Account Balances
S.B. Balance : $350.0
D.P.H. Balance : $700.0
C.A. Balance : $100.0
D.H. Balance : $434.0
Account Balances after Monthly Fees
S.B. Balance : $340.0
D.P.H. Balance : $688.0
C.A. Balance : $88.0
D.H. Balance : $422.0
Account Balances after Interest added
S.B. Balance : $347.82
D.P.H. Balance : $688.0
C.A. Balance : $88.0
D.H. Balance : $427.064