public class SavingsAccount { private static double annualInterestRate; private double savingsBalance; public SavingsAccount(double balance) { savingsBalance = balance; } public double getSavingsBalance() { return savingsBalance; } public static void modifyInterestRate(double rate) { annualInterestRate = rate; } public void calculateMonthlyInterest() { savingsBalance = savingsBalance + savingsBalance * annualInterestRate / 12; } }//class //////////////////////new file////////////////////////////////////// public class TestSavingsAccount { public static void main (String[] args) { SavingsAccount saver1 = new SavingsAccount(2000.00); SavingsAccount saver2 = new SavingsAccount(3000.00); SavingsAccount.modifyInterestRate(.04); saver1.calculateMonthlyInterest(); saver2.calculateMonthlyInterest(); System.out.println("Saver1 balance: " + saver1.getSavingsBalance()); System.out.println("Saver2 balance: " + saver2.getSavingsBalance()); SavingsAccount.modifyInterestRate(.05); saver1.calculateMonthlyInterest(); saver2.calculateMonthlyInterest(); System.out.println("Saver1 balance: " + saver1.getSavingsBalance()); System.out.println("Saver2 balance: " + saver2.getSavingsBalance()); }//main }//class