Grid: | ||
Tics Lines: |
|
Width
px
|
Hash Lines: |
|
Width
px
|
Labels: |
|
Font
px
|
Trace Lines: | ||
Robot 1: |
|
Width
px
|
Robot 2: |
|
Width
px
|
Robot 3: |
|
Width
px
|
Robot 4: |
|
Width
px
|
Axes: | x-axis | y-axis | Show Grid |
Grid: | 24x24 inches | 36x36 inches | 72x72 inches |
96x96 inches | 192x192 inches | ||
Quad: | 4 quadrants | 1 quadrant | Hardware |
Units: | US Customary | Metric |
Background: |
![]() |
|
|
|
Insert a condition so that the robot only drives when the random number between 1 and 100 is even.
/* Code generated by RoboBlockly v2.0 */ #include <linkbot.h> double variable; CLinkbotI robot; double radius = 1.75; variable = randint(1, 100); printf("variable is %g \n", variable); if (variable % 2 == 0) { robot.driveDistance(5, radius); }
Problem Statement: Insert a condition so that the robot only drives when the random number between 1 and 100 is even. |
|||||||||||