September 2015
Beginner
110 pages
2h 6m
English
| 13 | Determining Compound Interest |
Simple interest is something you use only when making a quick guess. Most investments use a compound interest formula, which will be much more accurate. And this formula requires you to incorporate exponents into your programs.
Write a program to compute the value of an investment compounded over time. The program should ask for the starting amount, the number of years to invest, the interest rate, and the number of periods per year to compound.
The formula you’ll use for this is
where
P is the principal amount.
r is the annual rate of interest.
t is the number of years the amount is invested.
n is the number of ...
Read now
Unlock full access