DocumentsDate added

When run, this code will cause a car to "snake" forward in wide arcs.
The length of the turns can be modified by changing either the time or motor power.

This code illustrates the Wait-for-Push command. When a touch sensor
on Port 1 is pressed, Motor A will stop.

The code will run Motor A in a random direction, at a random
speed, for a random amount of time. The motor speeds will fall between
0-100 and the time will fall between 0-3 seconds.

This code uses two very important coding commands, Case Structures and Loops.
The touch sensor Switch causes Motor A to go forward if the touch sensor
is released and backward if it is pressed. The Loop causes the Switch
to loop infinitely.
The NXT can also be used to play music. By placing notes manually custom songs
can be created.

This program beeps, runs Lurch-1, then beeps again.

This code uses a Loop to turn Motor A on-and-off three times. When
downloaded to a single motor car, this program will accelerate the
vehicle forward in three short bursts. The number of loops can be
changed by modifying the Constant "2". Alternatively, if
you want an infinite program, you can set the stop condition of the loop to a false constant.
This program is works like the Line Follower: Wait for
Dark program but it uses a Switch. The program runs a Switch--in a
infinite Loop--that runs Motor B and makes sounds when reading light.
The program stops Motor B then runs Motor C for 0.25 seconds when
reading dark.
This program runs Motor B until the light reading is
less than 50. Once the light reading is less than 50, Motor B stops and
Motor C runs for 0.25 seconds. This processed is infinitely looped.
This code turns on Motor A for two seconds, and then turns it off.
Similiar codes can be made by adding motors or changing times.