Robot Assignment

1. Follow black line then stop. The robot should start on the black line and move forward until it gets past the black line, at which time it should stop.

2. Back and Forth on black line. The robot should continually drive back and forth on the black line, forever.

3. Count green lines. The robot should start on the white, in front of the first green line. As it moves forward, it should beep once (and only once) when it hits a green line. On the fourth line, it should play a little tune and stop. (Use a variable to count the lines).

4. Hit wall, turn around. The robot should move forward until it hits something (either touch sensor). When it hits something, it should turn around (180 degrees) and begin moving forward until it hits something else. It should do this forever.

5. Follow black oval. The robot should follow the black oval for at least one revolution, using the light sensor (e.g., write your program so that it would work no matter how large the oval is).