Learning Math and Coding with Robots

Linkbot Image Mindstorm Image Cursor Image
0x726048362412y726048362412
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: (12 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: (24 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: (36 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Draw a Second Truck in One-Point Perspective
Problem Statement:
You do not need to add any blocks. Run the program and you will be prompted to enter the width of the rectangle for the smaller truck similar to the rectangle on the larger truck. Using the given dimensions and knowledge of proportions, solve for the unknown dimension.
/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
double variable;
double x;
CPlot plot;

// Describe this function...
void drawLargeTruck() {
  plot.fillColor("#666666");
  plot.ellipse(44, 6, 4, 6, 0);
  plot.ellipse(55, 6, 4, 6, 0);
  plot.ellipse(41, 14, 2, 3, 0);
  plot.fillColor("#c0c0c0");
  plot.rectangle(42, 6, 16, 12);
  plot.quad(42, 18, 40, 24, 50.5, 24, 57.85, 18);
  plot.quad(40, 16, 40, 23.25, 42, 18, 42, 6);
}

plot.strokeColor("black");
drawLargeTruck();
plot.strokeColor("red");
plot.rectangle(42.5, 6, 15.5, 12);
delaySeconds(0.03);
printf("If the dimensions of the highlighted rectangle on the truck are height = 12 and width = 16, what would the width need to be for the same shape on a smaller truck in front of this one with height = 5.4? Round to the nearest 0.5. "+"\n");
scanf("%lf", &variable);
x = 45.7 - variable;
//plot.backgroundImage("roadViewWithSun.png");
plot.strokeColor("black");
plot.fillColor("#666666");
plot.ellipse(39.5, 22.875, 1.75, 3, 0);
plot.ellipse(44.5, 22.58, 1.75, 2.25, 0);
plot.fillColor("#c0c0c0");
plot.quad(38.7, 22.5, x, 27.9, 45.7, 28.06, 45.7, 22.77);
plot.quad(38.7, 27.9, 38, 30, 43, 30.27, 45.55, 28.19);
plot.quad(38, 26, 38, 29.5, 38.7, 27.9, 38.7, 22.5);
drawLargeTruck();
delaySeconds(0.03);

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, 72);
plot.ticsRange(PLOT_AXIS_XY, 6);
plot.sizeRatio(1);
plot.plotting();
Blocks Save Blocks Load Blocks Show Ch Save Ch Workspace
Problem Statement:
You do not need to add any blocks. Run the program and you will be prompted to enter the width of the rectangle for the smaller truck similar to the rectangle on the larger truck. Using the given dimensions and knowledge of proportions, solve for the unknown dimension.

		
Rubbish bin
Time