0 Grade 3 missions
Logic & Coding Lab · Challenge
Mission 3 of 3123
Algorithm GearDebug a loop and conditional
MISSION TEXT
GOAL: Inspect three doors. PROGRAM: repeat 3 times { move to next door }; if door is blue { ring bell }. RESULT: The robot moves past all doors, then checks only the empty space after Door 3, so it never rings at blue Door 2.
Which revision fixes the logic?
Write the corrected loop in words and trace what happens at each of the three doors.
0 / 20 characters needed to unlock the choices