Enhanced cleverSkater Create an even better cleverSkater than the one created in Section 4.3. Use that code as the basis for...
Enhanced cleverSkater
Create an even better cleverSkater than the one created in Section 4.3. Use that code as the basis for your World. In addition to the skateForward, 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 backward instead of forward. In a jump method, the skater should move forward, lift one leg, then move upward (in the air) and back down to land gracefully on the ice and lower her leg back to its starting position. Save out your enhance skater as EnhancedCleverSkater.
Test your newly defined class by starting a new world with a frozen lake. Add an enhancedCleverSkater to the world. Also, add a penguin and a duck. Call each of the methods you have written. Then call the skateAround method to make the skater skate around the penguin and then the duck. (This requires 2 calls to the skateAround method.) Be sure to leave the world.my first method intact in the events window. If you choose to have no action in it, that is fine but you need to include the internal documentation, as described above, in this method so that it is visible when the world is opened.
11 years ago
10
- What is the probability that Both Anne and Kate have a loss greater than zero at the same time
- DUE TONIGHT
- ACC 291 Week 3 Exercises and Problems E10-6, E10-8, & E10-18. P10-3A & P10-6A..doc
- Linda Blye opened Cardinal Window Washing Inc. on July 1, 2010. During July the following transactions were completed
- acc 205 exercise assignments week 1-5
- ENG 125 COMPLETE COURSE BEST GUIDANCE FOR STUDENTS
- BUS 3059 Business Analysis Week 6 DQ 2
- Graph the following functions on separate coordinate planes
- BUS 415 Final Exam (7 different).zip
- European Diplomacy Part 2