CSC 112 Lab 06
due:  Wednesday, February 17 by 10:00 a.m.

ABSOLUTE DEADLINE!!

For each of the following exercises, create a storyboard. When storyboard is approved, translate the storyboard to a program. Include at least one comment in your program.

Demo the world to the instructor.

Activity 1: SpiderRobot. Storyboard: _______   Demo:_______

Use your LunarLander from Lab05 and modify it to make it walk over to the rock using a loop. Determine whether a loop of 2, 3, 4, or 5 will work better to get the spiderRobot over to see the alien.

Once the spiderRobot gets to the rock, make the alien move down out of sight. Is it out-of-sight of the spiderRobot because the spiderRobot can't see over the rock? Is the rock taller than the spiderRobot?

Add an if/else statement that says if the spiderRobot is shorter than the rock, then the spiderRobot's neck should move up to peer over the rock, then return to normal. If the spiderRobot is not shorter than the rock, the spiderRobot should turn to look at the camera and say something.

Upload your finished world to WebCT.

example of Activity 1

Activity 2. Skater falls in.  Storyboard: _______   Demo:_______

Using the LakeSkaterDemoStart World (Examples tab or download here) with the ice skater object do the following:

  1. Create a simple skate forward movement as one foot pushes off and comes back down (use a leg turn with 1/8 revolution).
  2. Continue the forward movement as the other leg pushes off and comes back down, but this time have the skater make a 1/4 turn simultaneously. You choose the direction.
  3. Use an IF control to see if the skater is over the hole. (Use the distance function.) If she is over the hole, she falls in.
  4. Put those statements inside a loop that repeats 3 times. Try to find a starting place the skater so that she falls in. Try to find a starting place that does not cause her to fall in.
  5. Upload your finished world to WebCT.

Print out this sheet and have the instructor initial each task as you have completed it.
Do NOT lose the sheets as it is your only proof that you have completed these in-class Labs.

Dann, Cooper, Pausch: Learning to Program with Alice