Find a mathematical representation that allows you to draw the rectangles using a loop. This will greatly reduce the amount of lines of code you have to write. It doesn't matter terribly which order...