Fundamentals of Programming

"Success is the ability to go from one failure to another with no loss of enthusiasm." Winston Churchill

Chapter 5-1 Exercises

Name____________________________ Checked By: ____________________________

 

  1. ___ /18 pts Chapter 5-1,  Example 1 - BiPlane [Page 126-131]
    • ____ [3 pt] Commenting
    • ____ [1 pt] Initial World -  Biplane & 3 objects on the ground
    • ____ [2 pts] Storyboard - SpaceBar & UpArrow handwritten (on the back of this rubric)
    • ____ [2 pts] Method - BiPlane.flyForward
    • ____ [2 pts] Method - BiPlane.barrel
    • ____ [4 pts] Event - UpArrow makes plane flyForward, SpaceBar makes plane barrel roll.
    • ____ [4 pts] Events - make plane turn left and right using LeftArrow & RightArrow
    • ____ [2 pts] Bonus - make the plane a vehicle for camera except when barrel rolling
  2. ___  / 22 pts Chapter 5-1, Example 2 - Slappy the Squirrel [Page 132-134]
    • ____ [2 pts] Commenting
    • ____ [2 pt] Initial World -  Slappy the Squirrel using Snowmobile as vehicle in snow with switch
    • ____ [2 pts] Storyboard - RedButton & GreenButton handwritten (on the back of this rubric)
    • ____ [2 pts] Method - rideForward
    • ____ [2 pts] Method - rideBackward
    • ____ [4 pts]Event - GreenButton makes Slappy & Snowmobile ride forward saying "wahoo" 
    • ____ [4 pts] Event - RedButton makes Slappy & Snowmobile ride backward saying ""the silly thing in reverse"
    • ____ [4 pts] Event - make Slappy have paw and head motion
  3. ___ / 20 pts. Chapter 5-1, Exercise 4 Typing Tutor [Page 136]
    • ____ [4 pts] Commenting
    • ____ [2 pts] Initial World - Create a world with five 3D text letters in a row
    • ____ [5 pts] Methods - one for each letter that spins the letter two times around
    • ____ [5 pts] Events - When the user types a letter key on the keyboard that matches the letter on the screen, the letter on the screen should perform its spin method.
    • ____ [4 pts] Method & Event - spinWord method and spaceBar event that spins the entire word in a circle when the user types the space bar. Hint: Use "As seen by".
  4. ___ / 13 pts  Chapter 5-1, Exercise 5 – Rotational Motion [Page 136]
    • ____ [4 pts] Commenting
    • ____ [1 pt] Initial World - Create a world with at least four objects (such as a Compass, Mailbox, MantleClock and Tire object.)
    • ____ [4 pts] Method - Realistic rotation method for each object.
      • For example, if one of your objects is a Compass, make the compass needles spin around quickly in opposite directions and then slowly point North.
    • ____ [4 pts] Event - for each of the objects add a behavior that will invoke the rotational motion method for that object when the object is clicked
  5. ___ / 12 pts   Chapter 5-1, Exercise 6 - Mad Scientist Magic [Page 137]
    • ____ [2 pts] Commenting
    • ____ [1 pt] Initial World - the Mad Scientist behind the Counter, the blender, the cup and the mug objects.
    • ____ Event - Mouse clicks any one of the objects on the countertop the Mad Scientist will:
      • [3 pts] point at that object
      • [3 pts] raise his arm (like he is casting a spell of some sort) and
      • [3 pts] the object spin or turn in any way you wish.

TOTAL SCORE: ______ / 85  points