0
/**
 * @(#)SavingsAccountTest.java
 *
 * SavingsAccountTest application
 *
 * @author Kelvin Njuguna
 * @version 1.00 2012/4/24
 */

public class SavingsAccountTest {

    public static void main(String[] args)
        {

        double interest1,interest2;
        double newBalance1,newBalance2;


        SavingsAccount.modifyInterestRate(0.04);

        SavingsAccount saver1 = new savingsAccount(2000.00);
        SavingsAccount saver2 = new savingsAccount(3000.00);


        for(int=0;i < 12;i++);
        {
        system.out.printf("Month %d:\n",i+1);




         interest1 = calculateMonthlyInterest();
         interest2 = calculateMonthlyInterest();

          newBalance1=saver1.getBalance() + interest1;
          newBalance2=saver2.getBalance() + interest2;

          saver1.setBalance(newBalance1);
          saver2.setBalance(newBalance2);

        }


    }//end of main
}//end of class savingsAccountTest
3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by Johannady2
1

If you are getting errors, You forgot to post the full text of the error messages.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.