Would you take out trash to the curb for pickup for one penny a month? I would, if my parents agree to double it every month! In other words, one penny for the first month, two for the second, four for the third month, and so on, as shown in the table A. It is really iterating function (1) every month by the function diagram as follows; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
You may complete the Pennies earned columns by doubling the previous entry. As you see, after 10 months your allowance is about the minimum wage in 1999. On the 16th month your allowance is over $300, and at the end of two years most parents cant afford your expensive trash takeout services. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
| Return to main text | |||||||||||||||||||||||||||||||||||||||||||||||||||||
You can grow the binary tree of figure 11 up to the tenth branching with the program Prog #1 which involves two parameter values |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 11. A
binary tree |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
| Return to main text |