Hey guys, struggling with Java eclipse programming and am in need of some assitance for this question, anything would be great.

2. Consider the following skeleton of the program:

public class Calculator {

public static void main(String[] args) {

Investment i1 = new Investment(100, 7.5, 10);

Investment i2 = new Investment(200, 5);

Investment i3 = new Investment();

i1.calculateFutureValue();

i2.calculateFutueValue();

i3.calculateFutureValue();

}

}

public class Investment{

}

Investment(){

}

Investment(double mthlyInvest, double rate, double time) {

}

Investment(double mthlyInvest, double rate){

}

Public void calculateFutureValue(){

}

Your task is to complete the Investment class:

1. Default constructor will take the monthly investment, rate and years from user.

2. Parameterized constructors will accept these values as arguments.

3. for calculating future value,

a. The rate of interest must be changed to monthly rate of interest.

For example: 7.5% interest

Monthly interest = 0.75/12;

b. The number of years must be changed to number of months.

For example: 10 years

Number of months = 10 * 12 = 120 months

4 To calculate the future value use the following formula to given number of months (Hint: use of

loops):

futureValue = (futureValue + monthlyInvestment)*(1 + MonthlyInterest)

5. Make use of access modifiers, Accessors and mutators where required.