pR&D Exercise Two Code

 //run motors at 25% for 2 seconds

motorSpeed(4,25);

goFor(2);

//run motors at 20% and go to absolute position of 12 feet

motorSpeed(4,20);

goToAbsolutePosition(12);

//reverse all motors

reverse(4);

//brake all motors

brake(4);

//Save the program as ExternalSensorsOutside