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 | |
Units: | US Customary | Metric |
Background: |
![]() |
|
|
|
|
|
|
|
|
|
/* 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) { printf("Answer for A is correct!"); } else { printf("Answer for A is incorrect."); } if (false) { printf("Answer for B is correct!"); } else { printf("Answer for B is incorrect."); } if (false) { printf("Answer for C is correct!"); } else { printf("Answer for C is incorrect."); } plot.axisRange(PLOT_AXIS_XY, 0, 36); plot.ticsRange(PLOT_AXIS_XY, 6); plot.sizeRatio(1); plot.plotting();
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. |
||||||||||||
|
||||||||||||