Instructions

The programs below do not work as intended. Your job is to find and fix the bug(s).

Help us find the problems in these programs!

3. Bug THREE

The task is to create a program that tells the GoPiGo to move in different ways based on the light level. In lower light levels, the GoPiGo will drive forward, in mid-range light levels the GoPiGo will drive backwards, in higher light levels the GoPiGo will turn left.

Look at the program below. If this program is run, what will the robot do? Connect to your GoPiGo and recreate the program to check your answer.