Sunday, April 19, 2009

Java Applet that draws a checkerboard using nested for loops. checkerboards alternate colors?

Java Applet that draws a checkerboard using nested for loops. checkerboards alternate colors yellow Square then Black Square). Draw an 8 x 8 collection of squares on a piece of paper. If you number the columns 0 to 7 and the rows 0 to 7, what value does (row + column) % 2 have in each square?

Java Applet that draws a checkerboard using nested for loops. checkerboards alternate colors?
One quick example:





http://math.hws.edu/eck/cs124/javanotes3...



myspace

No comments:

Post a Comment