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 <chplot.h> CPlot plot; plot.strokeColor("white"); plot.fillColor("white"); plot.strokeWidth(1); plot.regularPolygon(9, 30, 3, 4.1, 0); plot.text("Equilateral", PLOT_TEXT_LEFT, 6, 26); plot.text("Triangle", PLOT_TEXT_LEFT, 6, 24); plot.regularPolygon(18, 30, 4, 3.8, 0); plot.text("Square", PLOT_TEXT_LEFT, 16, 24); plot.regularPolygon(27, 30, 5, 3.5, 0); plot.text("Pentagon", PLOT_TEXT_LEFT, 24, 24); plot.regularPolygon(9, 18, 6, 3.2, 0); plot.text("Hexagon", PLOT_TEXT_LEFT, 6, 12); plot.regularPolygon(18, 18, 7, 2.9, 0); plot.text("Heptagon", PLOT_TEXT_LEFT, 15, 12); plot.regularPolygon(27, 18, 8, 2.6, 0); plot.text("Octagon", PLOT_TEXT_LEFT, 24, 12); plot.regularPolygon(9, 6, 9, 2.3, 0); plot.text("Nonagon", PLOT_TEXT_LEFT, 6, 1); plot.regularPolygon(18, 6, 10, 2, 0); plot.text("Decagon", PLOT_TEXT_LEFT, 15, 1); plot.grid(PLOT_OFF); plot.axisRange(PLOT_AXIS_XY, 0, 36); plot.ticsRange(PLOT_AXIS_XY, 6); plot.sizeRatio(1); plot.plotting();
Problem Statement: The pre-placed blocks draw and label a regular, or equilateral, triangle and a square. Add more blocks to draw the rest of the regular polygons. Adjust side lengths as necessary to keep the shapes at about the same size. Make sure to label them correctly. |
||||||||||||