### 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: (24 in, 15 in) Current Angle: 90 deg Wheel Radius: 1.1 in1.61 in Track Width: in

#### Robot 2

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

#### Robot 3

 Initial Position: ( in, in) Initial Angle: deg Current Position: (24 in, 48 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: (44 in, 30 in) Current Angle: 90 deg Wheel Radius: 1.1 in1.61 in Track Width: in

Soccer Team
Problem Statement:
The pre-placed blocks will give you everything needed for the program. Your goal is to edit the loop in the given code to make it look like the mindstorm is kicking the ball and the linkbot is making the goal.
```/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
#include <mindstorms.h>
#include <linkbot.h>
double i;
CPlot plot;
CMindstorms robot1;
double radius1 = 1.1;
double trackwidth1 = 4.54;
CLinkbotI robot2;
double radius2 = 1.75;
double trackwidth2 = 3.69;
CMindstorms robot3;
double radius3 = 1.1;
double trackwidth3 = 4.54;
CLinkbotI robot4;
double radius4 = 1.75;
double trackwidth4 = 3.69;

plot.noStrokeColor();
plot.fillColor("white");
robot1.turnRightNB(45, radius1, trackwidth1);
robot2.setSpeed(5, radius2);
robot2.drivexyToNB(26, 46, radius2, trackwidth2);
robot2.drivexyToNB(35, 48, radius2, trackwidth2);
for(i = 0; i <= 20; i++) {
//plot.backgroundImage("soccerField.png");
plot.circle(24 + i, 15 + i * 0.75, 2);
delaySeconds(0.03);
}
robot3.turnLeftNB(30, radius3, trackwidth3);
robot4.drivexyToNB(38, 57, radius4, trackwidth4);
robot2.turnRightNB(90, radius2, trackwidth2);
for(i = 0; i >= -9; i--) {
//plot.backgroundImage("soccerField.png");
plot.circle(44 + i, 30 + i * -2, 2);
delaySeconds(0.02);
}
robot1.setSpeed(23, radius1);
robot1.drivexyToNB(36, 10, radius1, trackwidth1);
for(i = 0; i <= 3; i++) {
//plot.backgroundImage("soccerField.png");
plot.circle(35 + i, 46 + i * -13, 2);
delaySeconds(0.02);
}
robot2.moveWait();
robot4.moveWait();
robot1.moveWait();
robot3.moveWait();

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:
The pre-placed blocks will give you everything needed for the program. Your goal is to edit the loop in the given code to make it look like the mindstorm is kicking the ball and the linkbot is making the goal.

Time