Class Work
Topic 4-3-2: Talented Skater
1. Complete Chapter 4, exercise 9 on page 113 from the Learning to Program with Alice textbook. The problem is restated here for those who do not have the book.
The point of this exercise is to create class level methods and use functions.
Enhanced CleverSkater. Create an even better cleverSkater than the one presented in Section 4-3. In addition to the skateFoward, spin, and skateAround methods, create skateBackward and jump class-level methods.
In skateBackward, the skater should perform similar actions to those in the skateForward method, but slide backwards instead of forwards.
In the jump method the skater should move forward, tilt one leg, then move upward into the air and back down to land on the ice and lower her leg back to its original position.
Save the newly defined class as enhancedSkater.
The initial scene with the version of cleverSkater can be downloaded here.
Test each of the methods written.
Extra: In the current version of skateAround the skater glides to the thing to skate around instead of actually skating. Can you change the method so she really skates to the object she is going to skate around?
