Learning Math and Coding with Robots

Linkbot Image Mindstorm Image Cursor Image
0x2418126-6-12y2418126-6-12
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

Geometric Sequence Challenge
Problem Statement:

Run the program, then find the common ratio for the geometric sequence and enter it into the box.

/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
double x1;
double num2;
double x2;
double x3;
double x4;
double x5;
double user_answer;
CPlot plot;
int count;

//plot.backgroundImage("starryNight.png");
x1 = randint(0, 25);
num2 = randint(-20, 20);
x2 = x1 * num2;
x3 = x2 * num2;
x4 = x3 * num2;
x5 = x4 * num2;
printf("Please enter the common ratio for the geometric sequence: " + string_t(x1) + ", " + string_t(x2) + ", " + string_t(x3) + ", " + string_t(x4)+"\n");
scanf("%lf", &user_answer);
if (user_answer == num2) {
  count = 0;
  while(count < 20) {
    plot.strokeColor(randcolor());
    plot.star(randdouble(-12, 24), randdouble(-12, 24), 5, 0);
    count = count + 1;
  }
  plot.strokeColor("white");
  plot.text("You are correct! Great job!", PLOT_TEXT_LEFT, -6, 8);
}
else {
  plot.strokeColor("red");
  plot.line(-12, -12, 24, 24);
  plot.line(-12, 24, 24, -12);
  plot.strokeColor("white");
  plot.text("Incorrect. The correct answer is:", PLOT_TEXT_LEFT, -8, 6);
  plot.text(num2, PLOT_TEXT_LEFT, 4, 4);
}

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, -12, 24);
plot.ticsRange(PLOT_AXIS_XY, 6);
plot.sizeRatio(1);
plot.plotting();
Blocks Save Blocks Load Blocks Show Ch Save Ch Workspace
Problem Statement:

Run the program, then find the common ratio for the geometric sequence and enter it into the box.


		
Rubbish bin
Time