/**
   This program computes how much an investment grows in
   a given number of years.
*/
public class InvestmentTest
{
   public static void main(String[] args)
   {
      final double INITIAL_BALANCE = 10000;
      final double RATE = 5;
      final int YEARS = 20;
      Investment invest = new Investment(INITIAL_BALANCE, RATE);
      invest.waitYears(YEARS);
      double balance = invest.getBalance();
      System.out.println("The balance after " + YEARS + 
         " years is " + balance);
   }   
}
