Graphic Java

Java provides a method called fillArc which allows the programmer to draw a portion or slice of a circle. Inspect this sample code:


The student should closely inspect the calls to fillArc. The first four parameters passed to the argument are the same as those for fillRect or fillOval (they simply set the size and location of a bounding rectangle. The last two parameters are the interesting part of the method call. The fifth number represents the starting point in degrees of the arc and the sixth number represents what portion of a full circle will be represented with 360 representing a full circle and 90 representing a quarter circle.
EXAMPLE: The student will create an applet like the one shown here. This activity provides the student with practice using the fillArc method.
x

ASSIGNMENT:
Recreate the applet shown above using the fillArc method.