Learning Math and Coding with Robots

0x36302418126y36302418126
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:

Robot 1

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (0 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 2

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (6 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 3

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (12 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 4

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (18 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Draw a Snowman
Problem Statement:

The pre-placed blocks will draw the middle body of the snowman. Add more blocks to draw other parts of the body, plus the arms, buttons, hat, and face.
/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
CPlot plot;

plot.fillColor("white");
plot.strokeColor("black");
plot.ellipse(18, 10, 12, 12, 0);
plot.ellipse(18, 18, 9, 9, 0);
plot.ellipse(18, 24, 7, 7, 0);
plot.fillColor("black");
plot.ellipse(18, 19, 1, 1, 0);
plot.ellipse(18, 17, 1, 1, 0);
plot.ellipse(18, 15, 1, 1, 0);
plot.ellipse(16.5, 24.5, 0.8, 0.8, 0);
plot.ellipse(19.5, 24.5, 0.8, 0.8, 0);
plot.arc(18, 24, 2.7, 225, 315);
plot.rectangle(16, 26.5, 4, 5);
plot.rectangle(14, 26.5, 8, 0.7);
plot.fillColor("#ff6600");
plot.triangle(17.5, 23.5, 17.5, 22.5, 22, 23);
plot.strokeColor("#663333");
plot.line(15, 18, 9, 20);
plot.line(21, 18, 27, 20);
plot.line(10, 19.66, 9, 21);
plot.line(26, 19.66, 27, 21);

plot.label(PLOT_AXIS_XY, "");
plot.grid(PLOT_OFF);
plot.tics(PLOT_AXIS_XY, PLOT_OFF);
plot.axis(PLOT_AXIS_XY, PLOT_OFF);
plot.axisRange(PLOT_AXIS_XY, 0, 36);
plot.ticsRange(PLOT_AXIS_XY, 6);
plot.sizeRatio(1);
plot.plotting();
Blocks Save Blocks Load Blocks Show Ch Save Ch Workspace
Problem Statement:

The pre-placed blocks will draw the middle body of the snowman. Add more blocks to draw other parts of the body, plus the arms, buttons, hat, and face.

		
Time