NO MORE MAGIC NUMBERS
Things to keep in mind when submitting your work:
1. Copy and paste your program in the post.
2. Attach your file(s).
3. Make sure your program has a header and the input/output.
4. If your program doesn’t run, an explanation should be the first line in the post.
Classwork:
YI_CompoundIntTable.java: Use a while loop to show how the investment increases as the accumulated total becomes at least $1,100 at an interest rate of 1.2% when $1,000 is deposited in a savings bank account.
The table should have the following columns:
year accum interest/year total accumulated up to this year 1 12.0 1012.0 2 24.14 1024.14 3 36.43 1036.43 ... Number of years for the investment of $1000 to reach at least a value of $1,100 with an interest rate of 1.2% is 8
Homework:
CompIntCompareTable_YI.java: Create another table that compares how you use the formula P(1+r)^t, where t is the number of years and how your program calculates the equivalent values.
End up your assignment with a conclusion about the similarities and the differences between the two approaches.