////Munoz-Villarreal ////20170417 ////Total with Grass Loops size(600,400); int lo= 110; int hi= 21200; int n; int total; total=0; for( n=lo; n<=hi; n=n+1) { total= total + n; } fill(0); textSize(20); text( "Total from "+ lo +" \nto "+ hi +" \nis "+ total, 25, 25 ); ////Grass at the botom stroke(0,255,0); strokeWeight(3); float x; x=10; while( x < 400 ) { line( x,400, x,400-30); x= x + 20; } strokeWeight(0); fill(255,0,0); for( x=10; x<400; x=x+20) { ellipse( x,400-30, 15,15); } fill(200,0,200 ); ellipse( 250,200, 80,80); rect( 210,200, 80,80); stroke(200,0,200); strokeWeight(2); for (x=420; x< 460; x+=10) { line( x,230, x,220 ); }