Using While Loop in Alice

Georgia Performance Standards: BCS-CMW-20

Students will demonstrate an understanding of basic programming concepts.

  1. Define basic programming concepts: variable, data type, procedure, parameter, conditional, iteration, flowchart, and pseudocode.
  2. Use variables of different data types in programs.
  3. Write programs with sequences, conditionals, and iteration.
  4. Use procedures in programs including ones that take parameters.
  5. Use tools to express the design of a program: flowcharts and pseudocode.
  6. Edit, compile, run, and test a program.
  7. Format a program to give a pleasing, consistent appearance.
  8. Discuss syntax, run-time, and logic errors.
  9. Debug a simple program.

Materials: Alice 2.2

Objective: Create an Alice World with a scuba diver floating in the ocean. A rescue helicopter hovers in the distance. The helicopter turns to face the scuba diver and then flies to a position above him. Export your world as a video.

Pseudocode:

Do together

Helicopter blades turn

Do in order

Helicopter turn to face scuba diver

Helicopter moves forward the distance to the scuba diver

While helicopter is more than ½ meter above the scuba diver

Helicopter moves down ½ meter

End loop

End do in order

End do together

Time: 55 minute class period

Rubrics:

Components / Points Available / Points Earned
Diver / 5
Helicopter / 5
Blades turn / 25
Helicopter faces diver / 15
Helicopter moves toward diver / 20
Helicopter moves down / 20
Export as a Video / 5
Creativity—Extras movement / 5
Total / 100