Graphic Java

This assignment gives the student more practice using various graphics methods and for loops.
EXAMPLE: The student will create an applet like the one shown here. This activity provides the student with practice using the various graphics methods and for loops.
x

ASSIGNMENT:
HINTS:

1. Create a method dedicated to the creation of a star with a declaration like this:

  public void drawStar(Graphics g, int a, int b)

2. Call the drawStar method from a method that creates a row of stars. It calls drawStar from within a for loop. The rowOfStars method should have the following declaration:
  public void rowOfStars(Graphics g, int a, int b, int n)

The a variable corresponds to the x coordinate of the first star in the row, the b variable corresponds to the y coordinate of the row, and the n variable represents the number of stars in the row.