Week 28 · Unit 12: Be a problem solver · 3 lessons
1
What goes in, what comes out
Computing 3: Unit 12, pp. 178–193
GoalSay what the input and the output are in everyday activities and machines.
New words
input · what we put in, or the data we give to somethingoutput · what comes out, or the resultprocess · what happens in between
Explanation
Almost everything that works has an input and an output. The input is what we put in or do. The output is what we get out. Between them, a process turns the input into the output. When we press a doorbell button, pressing is the input. The bell ringing is the output. A computer program has inputs and outputs too. A key press is an input, and a letter on the screen is an output. Some things have more than one input.
input: press the button→process: the bell works→output: the bell rings
Worked examples
Activity
Input
Output
using a calculator
the numbers and the plus sign
the answer on the screen
typing on a keyboard
pressing a key
a letter on the screen
pressing a lift button
the floor number
the lift goes to that floor
Each activity has an input and an output. Say what goes in and what comes out each time.
A plant has more than one input. The plant takes in water and sunshine. Its output is growth.
A cold snack also has inputs and an output. A banana, grapes and yoghurt go in. A fruit salad comes out. The process is mixing them in a bowl, with an adult’s help if a knife is used.
Class activity
Human calculator (in pairs): one of you is the calculator. The other says two small numbers and a sign, such as “three plus four”. This is the input. The calculator thinks, and then says the answer: “seven”. This is the output. Do six sums. Then swap. Try a new machine: the “doubling machine”, which doubles whatever number goes in. What are the inputs and the outputs now?
Practice
1
A traffic crossing has a button. A child presses it and the walking light turns green. What is the input and what is the output?
The input is pressing the button. The output is the walking light turning green.
2
Sort these into inputs and outputs: (a) typing the number 5 (b) a screen showing 5 (c) tapping a tablet (d) a speaker playing a song.
Inputs: (a) and (c). Outputs: (b) and (d).
3
A school bell rings when the clock shows nine. What is the input and what is the output?
The input is the time, nine o’clock. The output is the ringing bell.
4
A music player: you press “play”. What are the input and the output?
The input is pressing play. The output is the music that we hear.