|
Section 11: Branching and Looping166
|
|
Now run the program:
|
|
|
|
Example: The island of Manhattan was sold in the year 1624 for
$24.00. The program below shows how the amount would have grown each year if
the original amount had been placed in a bank account drawing 6% interest
compounded annually. The program prompts for the number of years and alters
that number for use by DSE . The
DSE is used to control the number of iterations
through the loop.
|
|
|