subject

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:

futureinvestmentvalue =
investmentamount * (1 + monthlyinterestrate)numberofyears*1 2
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:

sample 1:

enter investment amount: 1000
enter annual interest rate: 4.25
enter number of years: 1
accumulated value is 1043.34

sample 2:

enter investment amount: 1000
enter annual interest rate: 4.25
enter number of years: 1
accumulated value is 1043.34

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:30
What part of the interface displays the external references contained in a selected cell? the status bar the review tab the scroll bar the formula bar
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
Answers: 2
question
Computers and Technology, 25.06.2019 08:10
What is the relation between information and data?
Answers: 3
question
Computers and Technology, 25.06.2019 18:50
Asystem that combines arbitrary symbols to produce an infinite number of meaningful statements is a definition of:
Answers: 1
You know the right answer?
Write a program that reads in investment amount, annual interest rate, and number of years, and disp...
Questions
question
English, 07.01.2021 04:20
question
Computers and Technology, 07.01.2021 04:20
question
Biology, 07.01.2021 04:20
question
Mathematics, 07.01.2021 04:20
question
Mathematics, 07.01.2021 04:20
Questions on the website: 13722362