Plan before you code
Answers are for parents and teachers.
1
Write an outline plan (purpose, events and outcomes) for a story with a Boat and a Fish and two backdrops, Sea and Night.
A purpose sentence, at least three events (green flag, a click, a backdrop change) and an outcome for each. Accept any sensible plan.
2
List three events in a game that you know, such as pressing a key or touching a character. Say what happens after each.
For example: pressing the jump key makes the player jump; touching a coin adds 1 to the score.
3
The star adds 4 to the score each time that it is clicked, and the score is set to 0 by the flag. What is the score after 6 clicks? What is it after the flag is clicked again?
6 × 4 = 24. After the flag it is 0.
4
Draw a table with the columns Event, Sprite and Outcome for a program in which a sprite says ‘Hello!’ when the flag is clicked and moves 50 steps when the space key is pressed.
Row 1: flag clicked, the sprite, says Hello. Row 2: space key pressed, the sprite, moves 50 steps.
5
(if you have a computer or tablet) Build the rocket program from the lesson and click the flag, the Rocket and the Astronaut in turn. Does it do what the plan says?
The program should match the plan: Sky backdrop and speech, glide and Moon backdrop, Astronaut appears and speaks, pop and hide.