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 11:30
Me dangers of social media and the internetexplain what each means: 1) social media and phones have become an addiction.2) outside people have access to you all the time.3) cyberstalking4) cyberbullying5) catphishing6) viruses7) identity theft8) credit card fraud9) hacking10) money schemes
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Me ! evelyn is a manager in a retail unit. she wants to prepare a report on the projected profit for the next year. which function can she use? a. pmt b. round c. division d. what-if analysis
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
When writing a business letter, how many times can you use the same merge field in a document? once once, unless using the address block feature unlimited it will depend on the type of document you choose
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Do you think media is stereotype ? and why?
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
Questions on the website: 13722362