- As I get further on in the book, the more fun the exercises are. In Chapter 5 to complete the exercises you really need to think and problem solve in order to make sure the programs pass the doctests. These problems all involved a systematic testing and failing process in order to achieve the solution. I expected to fail, but in the failure I could pinpoint the problem and correct it. These problems also required the use of the return function and I learned how it could be used with boolean functions so that the use of if and else statements don't need to be used.
- the slope, intercept, Fahrenheit to Celsius and vice-versa functions all require the use of equations and formulas to complete the exercises.
- The intercept problem was especially fun because it involved relating the point-slope and slope-intercept forms in order to get the equation for the y-intercept.
- The Fahrenheit-Celsius problems were also fun because they involved the use of the int and round functions.
Friday, October 30, 2009
Chapter 5 Exercises
Chapter 5 Exercises at http://docs.google.com/View?id=d5d8bxk_67htqczwck
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment