![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 12.03.2021 16:10 MilkTea1
When an amount is invested at 5% simple interest, the amount grows by 5%, calculated on the original amount. For example, if $1000 is invested, the amount grows by the same $50 every year. Differently, if an amount is invested at 5% interest compounded annually, the amount at the end of each year is 1.05 times the amount at the beginning of that year. For example, if $1000 is invested, in this case, at the end of the first year, the interest would be $50 and the total amount $1050. At the end of the second year, the interest would be $52.5 and the total amount $1,102.50 and so on. Write a program that allows the user to enter an initial investment amount; it then computes and displays the amounts, for 8 years, for the investment at 5% simple and compound interest. The amounts should be formatted as currency, with 2 decimals. See an example below:
While this program can be coded using a For-Next Loop, for this HW you are required to use a Do-While loop. Additionally, your program should contain:
A Function to compute the simple interest
A Function to compute the compound interest
For this program, you do not need to check that the inputs are correct.
YEAR SIMPLE INTEREST COMPOUND INTEREST
1 2100 2205
2 2100 2205
3 2100 2205
4 2100 2205
5 2100 2205
6 2100 2205
7 2100 2205
8 2100 2205
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 11:00, jaygamer37
What is the name of the sound effect that danny hears
Answers: 1
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 12:00, exoticbunnylover123
Which spreadsheet operation does a look function perform?
Answers: 1
You know the right answer?
When an amount is invested at 5% simple interest, the amount grows by 5%, calculated on the original...
Questions in other subjects:
![Konu](/tpl/images/cats/obshestvoznanie.png)
![Konu](/tpl/images/cats/en.png)
English, 20.09.2020 07:01
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/health.png)
![Konu](/tpl/images/cats/istoriya.png)
History, 20.09.2020 07:01
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/istoriya.png)
History, 20.09.2020 07:01
![Konu](/tpl/images/cats/himiya.png)
Chemistry, 20.09.2020 07:01