3
Plan a robot’s job
Computing 1: Topic 4.3, pp. 135–145
GoalPlan a job for a robot and say the steps in order.
New words
plan · to think about what to do before you do itsteps · small actions, one after another
Explanation
Think of a job for a robot. Say what the robot should do. Say the steps in order. Say what its sensor notices. A robot only does what its program says. People stay in charge and keep robots safe.
Worked examples
Job: feed the class fish at 9 o’clock. Steps: wait until 9 o’clock, drop in a pinch of food, then wait until the next day.
Job: put away toys. Steps: find a toy, pick it up, put it in the box. The sensor looks for toys on the floor.
A good plan has the steps in the right order. ‘Drop in food’ before ‘wait until 9 o’clock’ is a mistake. The fish would get food at the wrong time.
Class activity
Human robot job: one person is the robot. A grown-up says a job, such as ‘put the shoes in the basket’. Plan the steps together: find a shoe, pick it up, put it in the basket, find the next shoe. The robot follows the steps in order. If a step is missing, the robot gets stuck. Debug the plan! Swap.
Practice
1
Put in order: put it in the bin, find the paper, pick it up.
Find the paper, pick it up, put it in the bin.
2
Why does a robot need steps in the right order?
It does only what its program says, one step after another.
3
A robot is cleaning the floor. Who keeps it safe?
People.
4
Plan a job for a robot at school. Say two steps.
Any sensible job with two ordered steps.