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

Use Ratios to Determine the Contents of Trail Mix
Problem Statement:
The board blocks create a mixture of trail mix on the left and give you a factor of 2 that the entire mixture will be multiplied by. The ratio of the nuts to raisins to M&Ms will remain the same for the new mixture. Find the amounts of nuts, raisins, and M&Ms in the new mixture.
/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
double Ans1;
double Ans2;
double Ans3;
CPlot plot;

printf("The entire mixture is multiplied by 2 but contains the same ratio of nuts to raisins to M&Ms. If every small rectangle in each cup with width 6 and height 1 is equal to one unit of the mixture, find a) the amount of nuts (brown) in the new mixture b) the amount of raisins (black) in the new mixture and c) the amount of M&Ms (red) in the new mixture. ");
printf("a) Number of nuts:"+"\n");
scanf("%lf", &Ans1);
printf("b) Number of raisins:"+"\n");
scanf("%lf", &Ans2);
printf("c) Number of M&Ms:"+"\n");
scanf("%lf", &Ans3);
plot.noStrokeColor();
plot.fillColor("#996633");
plot.rectangle(24, 6, 6, Ans1);
plot.fillColor("black");
plot.rectangle(24, Ans1 + 6, 6, Ans2);
plot.fillColor("#cc0000");
plot.rectangle(24, (Ans1 + Ans2) + 6, 6, Ans3);
delaySeconds(0.03);
if (false) {
  printf("Answer for A is correct!");
}
else {
  printf("Answer for A is incorrect.");
}
if (false) {
  printf("Answer for B is correct!");
}
else {
  printf("Answer for B is incorrect.");
}
if (false) {
  printf("Answer for C is correct!");
}
else {
  printf("Answer for C is incorrect.");
}

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 board blocks create a mixture of trail mix on the left and give you a factor of 2 that the entire mixture will be multiplied by. The ratio of the nuts to raisins to M&Ms will remain the same for the new mixture. Find the amounts of nuts, raisins, and M&Ms in the new mixture.

		
Rubbish bin
Time