Professional Documents
Culture Documents
/*
* Main.java
*
* Created on September 27, 2007, 4:14 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package futureinvestmenttable;
import java.text.*;
/**
*
* @author instructor
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// ask user input
System.out.println("Please enter the investment amount:");
double investmentAmount = MyInput.readDouble();
System.out.println("Please enter the number of years:");
int numOfYears = MyInput.readInt();
//define variables
double futureValue = 0;
double monthlyInterestRate = 0;