HW1a: Using the Repitition and Conditional Statements with Java Graphics Primitives
Due: Wed, Feb 5, 2003
[10 points]
The applet should use the Java graphics
primitives, the conditional and the repition statements to draw
the pattern
as per the specifications given below:
-
Using the JOptionPane.showInputDialog, prompt the user for the number of rows
as well as the number of columns.
- Draw the pattern as shown in the applet with alternating
black and red squares across columns as well as rows.
-
The applet should write your name at the top.
- A link to the source code of your applet.