Write a program that takes two numbers from the Java console representing, respectively, an investment and an interest rate (you will expect the user to enter a number such as. 065 for the interest rate, representing a 6.5% interest rate). Your program should calculate and output (in $ notation) the future value of the investment in 5, 10, and 20 years using the following formula:
future value = investment * (1 + interest rate) ^year
We will assume that the interest rate is an annual rate and is compounded annually.
+3
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a program that takes two numbers from the Java console representing, respectively, an investment and an interest rate (you will ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » Write a program that takes two numbers from the Java console representing, respectively, an investment and an interest rate (you will expect the user to enter a number such as. 065 for the interest rate, representing a 6.5% interest rate).