### 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

Use Ratios to Determine the Contents of Trail Mix
Problem Statement:
The board blocks create a mixture of trail mix on the left and give you a factor of 2 that the entire mixture will be multiplied by. The ratio of the nuts to raisins to M&Ms will remain the same for the new mixture. Find the amounts of nuts, raisins, and M&Ms in the new mixture.
```/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
double Ans1;
double Ans2;
double Ans3;
CPlot plot;

printf("The entire mixture is multiplied by 2 but contains the same ratio of nuts to raisins to M&Ms. If every small rectangle in each cup with width 6 and height 1 is equal to one unit of the mixture, find a) the amount of nuts (brown) in the new mixture b) the amount of raisins (black) in the new mixture and c) the amount of M&Ms (red) in the new mixture. ");
printf("a) Number of nuts:"+"\n");
scanf("%lf", &Ans1);
printf("b) Number of raisins:"+"\n");
scanf("%lf", &Ans2);
printf("c) Number of M&Ms:"+"\n");
scanf("%lf", &Ans3);
plot.noStrokeColor();
plot.fillColor("#996633");
plot.rectangle(24, 6, 6, Ans1);
plot.fillColor("black");
plot.rectangle(24, Ans1 + 6, 6, Ans2);
plot.fillColor("#cc0000");
plot.rectangle(24, (Ans1 + Ans2) + 6, 6, Ans3);
delaySeconds(0.03);
if (false) {
}
else {
}
if (false) {
}
else {
}
if (false) {
}
else { 