From Mock A · Paper 1: Written examination
16(c)4 marks
The robot must move forward until it reaches Room 12. If an obstacle is detected within 50 cm, it must stop, wait 5 seconds and then check again before continuing.
Write an algorithm, in pseudocode or Python, for this routine.