Difference between revisions of "2019 AMC 8 Problems/Problem 10"

(Problem 10)
 
(Added diagram)
Line 1: Line 1:
 
+
<asy>
 +
unitsize(2mm);
 +
defaultpen(fontsize(8bp));
 +
real d = 5;
 +
real t = 0.7;
 +
real r;
 +
int[] num = {20,26,16,22,16};
 +
string[] days = {"Monday","Tuesday","Wednesday","Thursday","Friday"};
 +
for (int i=0; i<30;
 +
i=i+2) { draw((i,0)--(i,-5*d),gray);
 +
}for (int i=0;
 +
i<5;
 +
++i) {  r = -1*(i+0.5)*d;
 +
fill((0,r-t)--(0,r+t)--(num[i],r+t)--(num[i],r-t)--cycle,gray);
 +
label(days[i],(-1,r),W);
 +
}for(int i=0;
 +
i<32;
 +
i=i+4) { label(string(i),(i,1));
 +
}label("Number of students at soccer practice",(14,3.5));
 +
</asy>

Revision as of 17:36, 20 November 2019

[asy] unitsize(2mm); defaultpen(fontsize(8bp)); real d = 5; real t = 0.7; real r; int[] num = {20,26,16,22,16}; string[] days = {"Monday","Tuesday","Wednesday","Thursday","Friday"}; for (int i=0; i<30; i=i+2) { draw((i,0)--(i,-5*d),gray); }for (int i=0; i<5; ++i) {   r = -1*(i+0.5)*d; fill((0,r-t)--(0,r+t)--(num[i],r+t)--(num[i],r-t)--cycle,gray); label(days[i],(-1,r),W); }for(int i=0; i<32; i=i+4) { label(string(i),(i,1)); }label("Number of students at soccer practice",(14,3.5)); [/asy]