Details of this Paper

Calculating Future Investment Value




Write a program that reads in investment amount, annual interest rate, and number of years, and;displays the future investment value using the following formula;and displays the future investment value using the following formula;futureInvestmentValue =;investmentAmount * (1 + monthlyInterestRate)numberOfYears*12;For example, if you enter amount 1000, annual interest rate 3.25%, and number of years 1, the;future investment value is 1032.98.;Hint: Use the Math.pow(a, b) method to compute a raised to the power of b.;Here is a sample run;Enter investment amount: 1000 (enter);Enter annual interest rate: 4.25 (enter);Enter number of years: 1 (enter);Accumulated value is 1043.34


Paper#67285 | Written in 18-Jul-2015

Price : $22