for Learning Math and Coding
Piano
 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
 Labels: x-axis y-axis Show Grid Grid: 12x12 inches 24x24 inches 36x36 inches 72x72 inches 96x96 inches 192x192 inches Quad: 4 Quadrants 1 Quadrant 1&4 Quadrants 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: (4 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: (8 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: (12 in, 0 in) Current Angle: 90 deg Wheel Radius: 1.75 in1.625 in2.0 in Track Width: in
Animate the Side View of a Moving Car
```/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
double i;
CPlot plot;

// Describe this function...
void Draw_Tree() {
plot.noStrokeColor();
plot.fillColor("#663333");
plot.rectangle(12 - i, -4.5, 2, 4);
plot.fillColor("#009900");
plot.triangle(9 - i, -1.5, 13 - i, 7, 17 - i, -1.5);
}

for(i = 1; i <= 30; i++) {
//plot.backgroundImage("sunshineSky.png");
Draw_Tree();
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, -12, 12);
plot.ticsRange(PLOT_AXIS_XY, 2);
plot.sizeRatio(1);
plot.plotting();```
 Load Blocks Symbol Symbol+Word Word Hardware LArduino Workspace Show Ch Save File
Problem Statement:
The pre-placed blocks draw a tree using a function. Add blocks to animate the tree passing by when viewed from the side of a moving car.

Time