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> CPlot plot; plot.strokeWidth(3); plot.noStrokeColor(); plot.fillColor("white"); plot.rectangle(3.8, -6.1, 5, 2); plot.strokeColor("#6600cc"); plot.text("9 bags", PLOT_TEXT_LEFT, 3.8, -6); delaySeconds(0.5); printf("Each bag: 1 Hersey, 3 M&M, 5 Tablet candies"); 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();
Problem Statement: It's Halloween and you're preparing candy bags for trick-or-treat. You have 9 Hersey candy bars, 27 M&M packages, and 45 of those colorful tablet candy rolls. You want every bag to have the same amount of each candy and you don't want any leftover (No, you can't just eat the leftover). Determine the largest numbers of bag can you make and answer the prompt.
|
||||||||||||
|
||||||||||||