CS105      Lab 3 - Simple Control Structures

Objectives:

  1. Before starting this lab you should have read Chapter 3 in your text.
     
  2. Start Alice and open the FirstEncounter world that you modified in lab 2.
     
  3. Follow the instructions on pp63-68 to make the spiderRobot move the distance to the rock (rather than just 1 meter).
     

  4. Assignment:
    After the spiderRobot moves to the rock and the alien moves down, have the spiderRobot turn to face the lunarLander and then move forward half the distance between the spiderRobot and the lunarLander.


     

  5. Assignment:
    Implement the Hop story as described on p84 #3.
    Your code should work no matter how you position the kangaroo initially with respect to the crate.
    In fact, you should test it with the kangaroo in several different locations.

     

  6. Follow the instructions on pp68-73 to make the spiderRobot move its head up and down only if the spiderRobot's height is less than 2 meters.  This instruction should happen right after the alien moves down out of view.
     

  7. Follow the instructions on pp73-76 to make the spiderRobot's legs move multiple times when walking by using a loop.

     

  8. Assignment:
    Implement the Snowman to Stool story as described on p85 #7.
    Your code should work no matter how you position the two objects.  Test your code with the snowman in several different locations.

     

  9. Send your three worlds to me in GoucherLearn.