CSC 120: Using for loops to Draw Shapes

Write lines of Java code (the body of the paintComponent method) that uses a loop or loops to display the following images:




The following two patterns are optional for Lab # 7: