Wednesday, October 21, 2009

Chapter 4 Exercises

Chapter 4 Exercises are published at http://docs.google.com/View?id=d5d8bxk_61f6tqkndq

  • The third problem seemed a bit pointless at first, but it was good to show how logical operators work.
  • Problem number 4 involved evaluation of boolean expressions and logical operators to complete and after some trouble I finally completed the rules of "and" and "or" operators and found the problem to be one of the best for reinforcing the chapter through the process of actually doing.
  • Problem 6 was redundant in that if you could do the first part the second part was no different and there seemed no point in doing them both.
  • Number 8 was also a good example of how conditional statements work, another good look at boolean expressions, and also a good look at the flow of execution.
  • Number 9 was a good problem on learning how to use GASP and the process of translating the house around the screen by parameterizing the original draw_house() definition took some time to get.



1 comment:

  1. Great comments! The reason for doing what seemed like a waste of time in exercise 6 is that I wanted to setup the generalization of the function in the following exercise. To generalize, you need to see the pattern. I'm glad you found it easy, but not everyone does.

    ReplyDelete