Unit2 Module2 Lesson2

A First Program

Overview

In this section we will implement the program we designed in Lesson 1

Learner Outcomes

At the completion of this exercise:

  • Have a completed Alice program
  • Have a introductory knowledge of the following methods and properties in Alice:move up, say , turn body part, look at, move toward, do together, walking, turn to look at, commenting, and property change at runtime.

Activities

  1. Students will be creating the program from Lesson 1 at the direction of the teacher.
  2. Look for Bugs in the program and
  3. Answer the following questions
    • Describe the difference between transnational motion and rotational motion.
    • Create sketches of an object in an Alice world to illustrate your answer to each of the following:
      • What will happen if an object is given an instruction to move right 90?
      • What will happen if an object is given an instruction to turn right 90?
      • What will happen if an object is given an instruction to roll right 90?
    • Do together and Do in order are each described as “control statements.” Why?
    • What does a method define?
    • Which control statement is used in Alice to create a block of instructions that will occur in sequence when the program is run?
    • Which control statement is used in Alice to create a block of instructions that will occur simultaneously when the program is run?
    • What is meant by the phrase “one block of code may be nested in another”?
    • How do you know whether a computer program has a bug?
    • If comments are ignored by Alice then why do we add comments to our program
  4. Do the following exercises:(remember to make storyboards)
    • CrabLegs:Modify the program from the Lesson so that the back legs of the crab move as well.
    • Snowpeople:Create a snow people world. Several snow people are outdoors on a snow-covered landscape. A snowman is trying to meet a snowwoman who is talking with a friend(another snowwoman) the snowman tries to get her attention. He turns to face the snowwoman and says “Ahem.” She turns to look at the snowman and he blinks his eyes at her. She blushes(her head turns red). But ,alas, she is not interested in meeting him. She gives him a “cold shoulder” and turns back to talk with her friend. He hangs his head in disappointment and turns away

All done?

Save your program into your folder (be sure not to save it to the folder on the shared drive…do a save as. Then show your teacher your program.

Resources