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

Short programs and resets

Week 2 · Unit 1: Making programs clear · 3 lessons
Answers are for parents and teachers.
1
Write the algorithm for a sprite: move 10 steps, move 10 steps, move 10 steps, move 10 steps, say Hi. Then write a shorter version. How many blocks did you save?
2
On a paper line numbered −4 to 4, put a coin on −2. The program is “change x by 3”. Move the coin for 3 clicks with no reset. Then try again with a “go to x: −2” at the start. Where does the coin finish each time?
3
A sprite starts at size 100 and the program has “change size by (25)” once. Fill in the size after clicks 1, 2 and 3 with no reset, and with “set size to 100” at the start.
ClickNo resetWith reset
1st??
2nd??
3rd??
4
Tell a grown-up why a game program needs a reset at the start.
5
(if you have a computer or tablet) In Scratch, make a sprite move right 50 steps when you click the flag. Click the flag three times. Then add a go to block and click three times again. What changes?