
![]()
There is an old story about the person who asks to be paid for work by doubling their pay each day for a month (Approximately 30 days). (1 cent for day one, 2 cents for day two, 4 cents for day three, 8 cents for day four, etc.) We know this grows dramatically…but how fast?
Your assignment is to write a program that will output the data in tabular form in order to show this growth of pay.
A sample run:
Day# Rate Total Pay
1 .01 .01
2 .02 .03
3 .04 .07
4 .08 .15
5 .16 .31
6 .32 .63
… … …
… … …
… … …
30 ??? ???