public class ComputeInterestDriver
{
    public static void main (String [] args)
	 {
	      ComputeInterest myComputeInterest;
			double answer;
			
			myComputeInterest = new ComputeInterest();
			for (int i = 0; i < 7; i++)
			{
			  answer = myComputeInterest.compute (500.00, 0.10, i);
			  System.out.println 
			    (" amount after " + i + " years is " + answer);
			} // end for
	} // end main
} // end ComputeInterestDriver
			