Question: Please type answer in java form Write a program to calculate the future value of an investment using compound interest. The formula to calculate the
Write a program to calculate the future value of an investment using compound interest. The formula to calculate the future value is A=P(1+mr)mt where A is the future value of the investment, P is the present value of the investment, r is the annual interest rate expressed as a decimal, m is the number of times the investment is compounded per year, and t is the amount of time invested in year. The program should create variables for the present value, annual interest rate, number of times compounded per year, and time in year and assign values to those variables. The program should calculate and display the calculated value of the future value as well as the values of all of the variables to the user. For instance, a sample run of the program would look like this: If $123.45 is invested at an annual interest rate of 2.5 percent, compounded 4 times a year for 12 years, the future value is $166.48. Do not worry about about formatting the numbers perfectly. Submit the java file containing your source code. Late Policy: Late programming assignments will be penalized by 10% with an additional 10% : penalty added for each 24 hour period elapsed between the original deadline and time of submission
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
