2023 Write a program that reads in investment amount annual interest rate and number of years and displays the future investment | Assignment Collections
Computer Science 2023 Calculating Future Investment Value
2023 Write a program that reads in investment amount annual interest rate and number of years and displays the future investment | Assignment Collections
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
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.