Quiz+4-21

Quiz 4-21:

Write a program without any functions that will spin the robot to the left as fast as it can go for 5 seconds, stop for 3 seconds, and then spin the robot to the right as fast as it can go for 5 seconds. I expect to see comments on each section of code that tells what it is doing .... such as "turning right for 5 seconds". Remember, in the real world you can NOT over comment.

Thanks

task main { motor[motorB]=100; Spin Left motor[motorC]=-100; wait1Msec(5000);

motor[motorB]=0; Cool It  //motor[motorC]=0; // //wait1Msec(3000); //

//motor[motorB]=-100; // Spin Right motor[motorC]=100; wait1Msec(5000); }