Write a program that calculates the future value of an investment at a given interest rate for

Question:

Write a program that calculates the future value of an investment at a given interest rate for a 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 or chooses Calculate from the Operation menu (see Figure 31.55). Click the Exit menu to exit the program.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: