Learning Math and Coding with Robots

Linkbot Image Mindstorm Image Cursor Image
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 Hardware
Units: US Customary Metric
Background: Background Image

Robot 1

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

Robot 2

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

Robot 3

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

Robot 4

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

Draw an Umbrella with Slanted Rain
Problem Statement:
The pre-placed blocks will draw part of the umbrella. Edit the first loop so instead of 2 light blue circles, 5 circles are drawn to create the bottom edge of the umbrella. The raindrops are currently going straight down. Change them so they are at an angle of 45 degrees.
/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
double i;
double j;
double x;
double y;
CPlot plot;

plot.backgroundColor("#ccffff");
plot.noStrokeColor();
plot.fillColor("red");
plot.arcSector(18, 14, 10, 45, 225);
plot.fillColor("#ccffff");
for(i = 1; i <= 5; i++) {
  plot.circle(7.5 + 3 * i, 6 + 3 * i, 3);
}
plot.strokeColor("black");
plot.line(14.5, 17.5, 20, 12);
plot.arc(21, 13.1, 1.5, 225, 360);
plot.noStrokeColor();
plot.fillColor("#3366ff");
for(j = 1; j <= 25; j++) {
  x = randint(1, 36);
  y = randint(1, 36);
  plot.circle(x, y, 0.5);
  plot.regularPolygon(x - 0.4, y + 0.4, 3, 1, 45);
}
plot.strokeColor("black");
plot.text("Rain, rain go away!", PLOT_TEXT_LEFT, 4, 30);
plot.grid(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 part of the umbrella. Edit the first loop so instead of 2 light blue circles, 5 circles are drawn to create the bottom edge of the umbrella. The raindrops are currently going straight down. Change them so they are at an angle of 45 degrees.

		
Rubbish bin
Time