# Creating a simple investment calculator Solution

Creating a simple investment calculator) Write a program that

calculates the future value of an investment at a given interest rate

for the specified number of years. The formula for the calculation

is as follows:

futureValue = investmentAmount * (1 + monthlyInterestRate)years*12

Use text fields for interest rate, investment amount, and years.

Display the future amount in a text field when the user clicks the

Calculate button, shown below.

HINT: Note that the form asks the user to enter the Annual Interest

Rate. The monthly interest rate is 1/12 of that. Also, remember to

divide by 100, since it is a percentage.

calculates the future value of an investment at a given interest rate

for the specified number of years. The formula for the calculation

is as follows:

futureValue = investmentAmount * (1 + monthlyInterestRate)years*12

Use text fields for interest rate, investment amount, and years.

Display the future amount in a text field when the user clicks the

Calculate button, shown below.

HINT: Note that the form asks the user to enter the Annual Interest

Rate. The monthly interest rate is 1/12 of that. Also, remember to

divide by 100, since it is a percentage.

You'll get 1 file (5.4KB)