Using While Loop in Alice
Georgia Performance Standards: BCS-CMW-20
Students will demonstrate an understanding of basic programming concepts.
- Define basic programming concepts: variable, data type, procedure, parameter, conditional, iteration, flowchart, and pseudocode.
- Use variables of different data types in programs.
- Write programs with sequences, conditionals, and iteration.
- Use procedures in programs including ones that take parameters.
- Use tools to express the design of a program: flowcharts and pseudocode.
- Edit, compile, run, and test a program.
- Format a program to give a pleasing, consistent appearance.
- Discuss syntax, run-time, and logic errors.
- 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 EarnedDiver / 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