Lab 2, Chapter 3

More Simple Control Structures

  Obtain an instructor's initials on each of the "Exercises" below. You may complete the "Concept Questions" during lab, or submit them to the drop box by our next class.

 

Name:  _________________________________________

 

Date:     _________________________________________

 

 

Exercises from Chapter 3

 

1.  Complete Exercise 4. Volleyball Jump:  _____________

  After the first person jumps, have the camera rotate around to the other side of the volleyball net before the second person jumps.

 

2. Complete Exercise 5.  SpiderRobot's Walk:  _____________

 

 

3.  Complete Exercise 7.  Snowman to Stool : __________

I will test your animation by moving the stool and snowman and running the animation. The snowman should end up within one meter of the stool, but not overlapping with it.

 

 

Concept Questions (Short answer)

 

4.  List four different control structures used in creating a program in Alice.

 

 

 

5.  What type of function value is used to check a condition in an If/Else statement?

 

 

 

6.  Describe what happens in an If/Else statement when the instruction in the Else part is Do Nothing?

 

 

 

7.  The following relational operation is available in the World's functions list:   

 

     (a)  Give an example of what "a" and "b" can represent.

 

 

     (b) What type of value is obtained when this operation is evaluated? 

 

 

 

8. What is the purpose of a Loop statement?