Assignment #8

Due: Tues, July 29

Objective

This assignment will help you gain basic practice with class Graphics

Task

Complete these two exercises, each of which involve drawing things on a panel, from inside the paintComponent() method:



Filenames should be

Exercise 1

Filename: Circles.java

Write an application that draws a series of eight concentric circles. The circles should be separated by 10 pixels.

Notes and requirements


Exercise 2:

Filename: Triangles.java

Write an application that creates 5 random triangles, each one filled with random color.

Notes and requirements


Submitting:

Submit your files through the Blackboard submission link, as usual. Make sure to upload both files before you submit:
  Circles.java
  Triangles.java