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: (12 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: (24 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: (36 in, 0 in) Current Angle: 90 deg Wheel Radius: 1.75 in1.625 in2.0 in Track Width: in
Use Ratios to Find the Height of a Building in Two-Point Perspective
```/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
double y;
double x;
double variable;
CPlot plot;
int count;

y = randint(40, 70);
x = (double(6)/10) * y;
plot.strokeColor("black");
plot.fillColor("#999999");
plot.quad(22, 35.5, 22, (x + 0.75) + 22, 16, x + 21, 16, 40);
plot.quad(30, 36, 30, x + 21, 22, (x + 0.75) + 22, 22, 35.5);
plot.quad(36, 24, 36, y + 2.75, 46, y, 46, 32);
plot.quad(36, 24, 36, y + 2.75, 26, y, 26, 32);
plot.strokeColor("black");
plot.fillColor("#666666");
plot.quad(0, 52.75, 0, 52.75, 66, 0, 48, 0);
plot.strokeColor("red");
plot.line(26, 32, 26, y);
delaySeconds(0.03);
printf("If the widths of the left faces of the smaller and larger building are 6 meters and 10 meters respectively and the height of the highlighted side of the larger building is %g meters, what is the height of the corresponding side of the smaller building?\n", y);
count = 0;
while(count < 3) {
printf("Enter the value for the height of the smaller building:"+"\n");
scanf("%lf", &variable);
if (variable == x) {
printf("Great job!");
break;
}
else {
printf("Try Again.");
}
count = count + 1;
}

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, 72);
plot.ticsRange(PLOT_AXIS_XY, 6);
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 two buildings with proportional width and height. Use the given widths of the buildings and the height of highlighted side of the larger building to find the height of the corresponding side of the smaller building.

Time