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

Code the algorithm

Week 29 · Unit 12: Be a problem solver · 3 lessons
Answers are for parents and teachers.
1
Write the blocks for this algorithm: 1 When the green flag is clicked. 2 Switch costume to fish-a. 3 Go to x: −90, y: 30.
2
Name the input and the outputs of this algorithm.
StepInstruction
1When the left arrow key is pressed
2Start sound Whoosh
3Change x by −30
3
A penguin has two algorithms. Write both: a reset (input: green flag; outputs: costume penguin-a and the place x: 50, y: −70) and an action (input: click; outputs: the penguin says “Brr!” for 2 seconds).
4
A script says “Good morning!” for 3 seconds, waits 2 seconds, starts a sound (which takes no time) and then says “Bye!” for 4 seconds. How long does it take?
5
(if you have a computer or tablet) Build the plane and cloud program from lesson 3 in Scratch. Test it as in the examples. Does the cloud change when the plane arrives?