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, 22.06.2019 04:00
Acetylene is a gas which burns rapidly on its own, and is considered highly explosive. a) true b) false
Answers: 2
question
Computers and Technology, 22.06.2019 08:30
Today is the anniversary of me being on yet, i don't need it anymore! here's a picture of my dog wearing a bowtie! my question is, how do i delete my account?
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Guys do you know sh27 cause he hacked me : ( pidgegunderson my old user
Answers: 2
question
Computers and Technology, 24.06.2019 08:00
Arah has entered data about football players from team a and team b in a worksheet. she enters names of players from team a with details about each player in different columns of the worksheet. similarly, she enters details of all the players from team b. which option will her view the data for team a and team b in two separate sections after printing? a. page break view b. freeze pane view c. split screen view d. full screen view e. zoom out view
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, 09.12.2020 18:30
question
Mathematics, 09.12.2020 18:30
Questions on the website: 13722367