Inputs and outputs
Answers are for parents and teachers.
1
Name the input and the output of three machines or activities at home, such as a doorbell, a remote control or a switch.
Answers vary. Check that each input is something done or put in, and each output is a result, such as a light, a sound or a picture.
2
Write an algorithm that asks for a number, doubles it, adds 1 and shows the answer. Trace it with the input 5.
1 Start. 2 Enter a number. 3 Let answer = number + number + 1. 4 Show the answer. 5 Stop. With 5: 5 + 5 + 1 = 11.
3
Write a reset algorithm for a fish sprite. The input is clicking the green flag. The outputs are costume fish-a and the position x: −100, y: 30.
When the green flag is clicked: switch costume to fish-a; go to x: −100, y: 30.
4
Make a number machine for your family: write a secret two-step rule on a card, such as “add 2, then double”. Let them give numbers and say the outputs. Can they guess the rule?
Check that the outputs follow the rule, for example 3 gives 10 for “add 2, then double”.
5
(if you have a computer or tablet) In Scratch, make a sprite go to x: −150, y: −60 when the green flag is clicked. Move it by hand and click the green flag. What happens?
The sprite goes back to x: −150, y: −60 every time the green flag is clicked.