Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The program shown here operates the robot servo motors for 2 seconds. Match the

ID: 3673011 • Letter: T

Question

The program shown here operates the robot servo motors for 2 seconds. Match the sensor reading to the appropriate description of robot motion. Assume that the robot and the User-Defined Functions (the functions below the 'green forward-slash fence')

#include // Include servo library Servo servoLeft: // Declare left servo Servo servoRight: 1/ Declare Right servo void setup) // Built in initialization block servoRight.attach (30): 11Attach right signal to pin 30 servoLeft.attach (31): Attach right signal to pin 31 Serial.begin (9600): // Set data rate to 9600 bps int oneLightsensorValue-getoneLightSensor if( oneLightsensorValue> 20 &&oneLightSensorValue30; leftBackward 100) rightBackward( 100 e40 leftForward 100 rightBackward 100 else if oneLightsensorValue 40 &&oneLightSensorValue45; leftBackward ( 100 rightForward 100) else leftForward 100) rightForward 100 delay (2000)

Explanation / Answer

27->moves in reverse

33->spins left

41->spins right

49->moves forward