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 | |
Units: | US Customary | Metric |
Background: |
![]() |
|
|
|
/* Code generated by RoboBlockly v2.0 */ #include <linkbot.h> CLinkbotI robot; double radius = 1.75; double trackwidth = 3.69; int count; // Describe this function... void createCircle() { robot.traceOff(); robot.driveDistance(7, radius); robot.turnRight(90, radius, trackwidth); robot.traceOn(); count = 0; while(count < 36) { robot.driveDistance(0.6101, radius); robot.turnRight(10, radius, trackwidth); robot.driveDistance(0.6101, radius); count = count + 1; } } createCircle(); robot.traceOff(); robot.drivexyTo(12, 0, radius, trackwidth); robot.traceOn(); createCircle();
Problem Statement: The createCircle function will draw a circle with a radius of 7. Use the createCircle function to draw two circles centered at: (0, 0) and (12, 0). For a challenge, only trace the two circles. |
||||||||||||