Part 1: Financial tables
Write a program that produces a financial table showing
the amount in account assuming a $100 initial balance, monthly
compounding and annual rates from 2% to 12% in .5% increments,
and duration 1 year to 5 years, in increments of one year.
Each row represents a different interest rate, each column
represents a different duration. Your result should be written to
a file named table.txt with tabs separating the
values, as shown below. Note: you have to actually do the
calulations, you can't simply cout the table copied & pasted
from the output below!
102.018 104.078 106.178 108.321 110.508
102.529 105.122 107.78 110.506 113.3
103.042 106.176 109.405 112.733 116.162
103.557 107.24 111.054 115.004 119.094
104.074 108.314 112.727 117.32 122.1
104.594 109.399 114.425 119.681 125.18
105.116 110.494 116.147 122.09 128.336
105.641 111.6 117.895 124.545 131.57
106.168 112.716 119.668 127.049 134.885
106.697 113.843 121.467 129.602 138.282
107.229 114.981 123.293 132.205 141.763
107.763 116.129 125.145 134.86 145.329
108.3 117.289 127.024 137.567 148.985
108.839 118.459 128.93 140.326 152.73
109.381 119.641 130.865 143.141 156.568
109.925 120.835 132.827 146.01 160.501
110.471 122.039 134.818 148.935 164.531
111.02 123.255 136.838 151.918 168.66
111.572 124.483 138.888 154.96 172.892
112.126 125.722 140.967 158.061 177.227
112.683 126.973 143.077 161.223 181.67
Do your project
The remainder of the lab period should be spent working on your
project. Remember: you can't talk to one another about the
project! This is, however, an opportunity to get help from
your professor.