subject

An investment company guarantees a 2% monthly compounded return on your investment. You want to see how long it takes to reach a total of $500,000 dollars in investment plus return. Write a program that allows the user to enter a continuous monthly investment (Example - $200 every month) or ($600 every month). The program should call a recursive method that returns and displays the total months needed to reach the $500,000 dollar goal. Example - At the 2% compounded monthly rate, and a $400 continuous monthly investment, the first month the user makes $8 interest and has $408.00 dollars, the second month the user adds $400 and makes $16.16 interest and now has $824.16, the third month the user adds $400 and makes $24.48 in interest and now has $1,248.64 dollars, etc. Display how many total months it takes the user to reach the $500,000 dollar goal. Remember, the user should be able to input the continuous monthly investment. The rate is always 2% and compounded monthly.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 13:20
In the insert table dialog box, you select the checkbox to create the first row as the header of the table.
Answers: 3
question
Computers and Technology, 24.06.2019 14:30
Two students are discussing electricity that has a frequency of 60 hz. student a says that this type of electricity is referred to as ac. student b says that in this type of electricity, the electrons flow in only one direction. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
question
Computers and Technology, 24.06.2019 19:50
Which is a characteristic of free and open-source software licenses? a. the source code is unavailable to everyone b. the source code is available only to the government c. the source code is available to all users d. the source code is constantly modified
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
The hybrid uses 144 to 158 volt batteries.
Answers: 1
You know the right answer?
An investment company guarantees a 2% monthly compounded return on your investment. You want to see...
Questions
question
Mathematics, 02.12.2021 18:00
question
Chemistry, 02.12.2021 18:00
question
Chemistry, 02.12.2021 18:00
question
Engineering, 02.12.2021 18:00
question
English, 02.12.2021 18:00
question
History, 02.12.2021 18:00