subject

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
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:30, amy20021
Write the html code to make a link out of the text “all about puppies”. it should link to a pdf called “puppies. pdf” inside the “documents” folder. the pdf should open in a new window.
Answers: 2
image
Computers and Technology, 23.06.2019 11:00, jaygamer37
What is the name of the sound effect that danny hears
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, lyn94
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
image
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: