Representing algorithms

EasyMediumHard
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
Question 11
Medium

An agricultural drone is monitoring an orchard divided into a 6×6 6 \times 6\,6×6 grid of plots.

The drone is initially positioned at plot B5, facing East (indicated by the ▶ symbol).

Grid of crop plots

ABCDEF
1
2
3
4
5▶
6

The drone executes the following navigation algorithm:

Forward(2)
TurnLeft()
Forward(3)
TurnRight()
Forward(1)

Draw the path of the drone through the grid by listing the sequence of cells visited in order (starting with B5), and state its final cell and facing direction.

[3]

Representing algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Representing algorithms