### Learning Math and Coding with Robots

 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:

#### Robot 1

 Initial Position: ( in, in) Initial Angle: deg Current Position: (0 in, 0 in) Current Angle: 90 deg Wheel Radius: 1.75 in1.625 in2.0 in Track Width: in

#### Robot 2

 Initial Position: ( in, in) Initial Angle: deg Current Position: (6 in, 0 in) Current Angle: 90 deg Wheel Radius: 1.75 in1.625 in2.0 in Track Width: in

#### Robot 3

 Initial Position: ( in, in) Initial Angle: deg Current Position: (12 in, 0 in) Current Angle: 90 deg Wheel Radius: 1.75 in1.625 in2.0 in Track Width: in

#### Robot 4

 Initial Position: ( in, in) Initial Angle: deg Current Position: (18 in, 0 in) Current Angle: 90 deg Wheel Radius: 1.75 in1.625 in2.0 in Track Width: in

Modeling the Rate of Ducks Landing in a Lake with a Linear Equation
Problem Statement:
The pre-placed blocks will draw ducks landing in a lake at a constant rate. Run the program and observe the amount of ducks that appear over an amount of time to create a linear equation modeling this relationship. Type the linear equation into the text box that appears at the end of the program. Enter your equation in the form y=m*x, and convert any fractions into decimals.
```/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
double j;
double i;
double variable;
CPlot plot;

// Describe this function...
void drawDuck(double x, double y) {
plot.noStrokeColor();
plot.fillColor("yellow");
plot.circle(x, y, 2);
plot.fillColor("#ff6600");
plot.triangle(x + 1.5, y + 1, x + 3, y, x + 1.5, y - 1);
plot.fillColor("black");
plot.circle(x + 0.5, y + 1, 0.45);
}

for(j = 0; j <= 2; j++) {
for(i = 0; i <= 3; i++) {
drawDuck((4 + i * 4) + j * 8, 8 + i * 4);
delaySeconds(2);
}
}
printf("Write an equation to represent the number of ducks in the lake as a function of time (Use the variable d for ducks and t for time):"+"\n");
scanf("%lf", &variable);

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 ducks landing in a lake at a constant rate. Run the program and observe the amount of ducks that appear over an amount of time to create a linear equation modeling this relationship. Type the linear equation into the text box that appears at the end of the program. Enter your equation in the form y=m*x, and convert any fractions into decimals.

Time