Skip to content
Menu

Year 2 (ages 6–7, Grade 1 in the US) · Computing · Programming a floor robot · Lesson 2

Programming a floor robot

Programming a floor robot with forward, back and quarter turns on a grid, predicting where it will end and debugging.

Exam boards: this lesson matches the AQA and Pearson Edexcel GCSE computing courses. Check which course your school follows.

Whiteboard video lesson: Programming a floor robot

14-minute video lesson

Teaching, worked examples and 20 practice questions solved step by step.

Watch free for a month

What your child will learn

  • Use forward, back, left and right
  • Follow programs on a grid
  • Predict the result
  • Debug a program

The method

  1. Where does it start, and which way does it face?
  2. Plan the moves, one at a time.
  3. Predict where it will end.
  4. Run it - debug if it goes wrong.

Key words: program, floor robot, forward, turn, predict, debug.

Worked examples

Worked examples from the lesson, with every step.

Question 1

A robot faces up and turns right. Which way does it face?

  1. Step 1: quarter turn

Answer: right

Question 2

A robot faces up and turns left. Which way does it face?

  1. Step 1: quarter turn

Answer: left

Question 3

Does ‘turn right’ move the robot to a new square?

  1. Step 1: it just turns

Answer: no