@@ -0,0 +1,1315 @@
+/**%0A *       %3C%3C%3C THIS CODE IS NOT COMPLETE %3E%3E%3E%0A *   An account that earns interest at a fixed rate.%0A */%0Apublic class SavingsAccount extends BankAccount%0A%7B%0A    private double interestRate;%0A    public static final double MINIMUM_BALANCE = 10;%0A%0A    /**   %3C%3C%3C COMPLETE THIS METHOD %3E%3E%3E%0A     *   Constructs a bank account with a given interest rate.%0A     */%0A    public SavingsAccount(double rate) %7B%0A        this.interestRate = rate;%0A    %7D%0A%0A    /**   %3C%3C%3C COMPLETE THIS METHOD %3E%3E%3E%0A     *   Constructs a bank account with a given balance%0A     *   and a given interest rate.%0A     */%0A    public SavingsAccount(double initialBalance, double rate) %7B%0A        super.deposit(initialBalance);%0A        this.interestRate = rate;%0A    %7D%0A%0A%0A    /**  %3C%3C%3C COMPLETE THIS METHOD %3E%3E%3E%0A     *   Adds the earned interest to the account balance.%0A     */%0A    public void addInterest()   %7B%0A        super.deposit(interestRate / 100 * super.getBalance());%0A    %7D%0A%0A    /** %3C%3C%3C COMPLETE THIS METHOD%3E%3E%3E%0A     *  overrides withdraw in the superclass%0A     *  only allows withdrawel to occur if%0A     *  resulting balance %3E MINIMUM_BALANCE%0A     */%0A    public void withdraw(double amount)  %7B%0A        double resulting_balance = super.getBalance() - amount;%0A        if (resulting_balance %3E= MINIMUM_BALANCE) %7B%0A            super.withdraw(amount);%0A        %7D%0A    %7D%0A%7D%0A

Create SavingsAccount.java