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

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.

Exercise31_17 Exercise31_17 Operation Operotion Investmant Amount Caiculate nount: 10000 10000 Number of

Exercise31_17 Exercise31_17 Operation Operotion Investmant Amount Caiculate nount: 10000 10000 Number of Vears 2 Exit ars Annual Intereat Rate 5.75 Annual Interest Rate: 5.75 Future value: $11215.65 Future value $10590.40 Calculatu Calculate

Step by Step Solution

3.31 Rating (166 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javafxapplicationApplication import javafxgeometryPos import javafxgeometryHPos import javafxsceneScene import javafxscenecontrolButton import ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction to Java Programming and Data Structure Questions!