AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Plan then program

Week 14 · Unit 6: Be a designer · 3 lessons
2

Plan, then program

Computing 2: Unit 6, pp. 80–91
GoalTurn an algorithm written in steps into blocks, and read the numbers on turn blocks.
New words
plan · to work out what to do before you startblock · one piece of a program that does one jobquarter turn · a quarter of a whole turn; in ScratchJr the number 3
Explanation

First we plan. We write the algorithm as numbered steps. Then we change each step into a block. The first step is a start block and the last step is the end block. A turn block has a number. In ScratchJr, 3 is a quarter turn, 6 is half a turn and 12 is a whole turn. Then we run the program and see if it does what we planned.

StepInstruction
1Start on green flag
2Right 3
3Hop 2
4Say “Yay!”
5End
Worked examples
32Yay!start ongreen flagmoverighthopsayend
The blocks for the algorithm above. Each step has one block.
33Wow!
Two quarter turns make a half turn. The character turns right 3 and then right 3 again. Then it says Wow!.
NumberHow much it turns
3a quarter turn
6half a turn
9three quarters of a turn
12a whole turn, back to the start
The numbers on a turn block.
Class activity

Plan and act: write a 5-step algorithm on paper for a robot show, for example: 1 Start on clap. 2 Take 3 steps right. 3 Hop 2 times. 4 Say “Hello”. 5 End. Act it out. Then draw one block card for each step: a flag, an arrow with 3 under it, and so on. Give your cards to a friend. Can your friend act out your program in the right order? (If you have a tablet with ScratchJr and an adult to help: build the blocks and run them.)

Practice
1
Write the algorithm for this program as numbered steps.
31
2
A character does turn right 6. How much of a whole turn is that?
3
Draw the two missing blocks. Algorithm: 1 Start on green flag. 2 Left 4. 3 Say “Hi!”. 4 End.
??
4
The character moves right 3 and then right 2. How many squares does it move in all?
32