Computers and Technology
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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, tristina20
The isometric projection camera technique provides an illusion of perspective by using things like parallax scrolling to create the illusion of 3d in a 2d game
Answers: 3
image
Computers and Technology, 23.06.2019 13:30, carolelai08
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
image
Computers and Technology, 23.06.2019 21:40, gaby06
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
image
Computers and Technology, 24.06.2019 11:00, airbenderjermai
Need fast im timed in a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their projects.
Answers: 2
Do you know the correct answer?
When an amount is invested at 5% simple interest, the amount grows by 5%, calculated on the original...

Questions in other subjects:

Konu
Biology, 31.10.2019 14:31