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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:30, mitalichavez1
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 3
image
Computers and Technology, 23.06.2019 12:00, clevelandjaniya1
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
image
Computers and Technology, 23.06.2019 17:00, kyleemarie2003
Companies that implement and apply an information system effectively can create
Answers: 1
image
Computers and Technology, 23.06.2019 18:00, sophx
Apunishment or the threat of punishment used to enforce conformity. select the best answer from the choices provided t f
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 in other subjects:

Konu
Mathematics, 19.11.2020 21:20