CS 107, Project 3
NQC Programming
Must be checked off by Tuesday, March 28

1. Write an NQC program that causes the robot to turn around when either sensor hits something.

2. Write an NQC program that causes the robot to drive along the black line until it hits white.

3. Write an NQC program that causes the robot to drive around the black circle continuously.

4. Write an NQC program that counts the number of green lines it crosses, beeping each time, then stops when it hits black. After stopping, it should beep n times, where n is the number of green lines it crossed.

5. Write a program with a main task and two sub-functions, spinAround and playMusic (just have it play some sounds). The main function should call the subfunctions three times, using a while loop. You'll need to define a variable for the loop counter.

6. Write some really cool program.