Question: 3. Write a program that calculates the future value of an investment at a given interest rate for a specified number of years. The formula
3. 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: future Value = investment Amount *(1 + monthlyInterestRate)Yea Use text fields for interest rate, investment amount, and years, years 12 7 a Display the future amount in a text field when the user clicks the Calculate button, and save all the text into a file called "investment.txt" when the Save button is clicked, If user input are not numerical values, then display "Wrong input" in the last JTextField; if no value is input or the future value is not calculated, then display "not calculated" in the last JTextField. GUI as shown below: Investment-valu... Investment Amount Years Annual Interest Rate Future value Calculate Save
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
