Computer Science 121
Assignment 6
Due: November 10, 1999

Create an applet that will draw a picture of a house. The applet should have four classes. The first one will have the paint method that draws the base of the house, the roof and a door. (You may also draw a window, if you wish.)

The class that defines the base should have a method that draws the main part of the house. It can be a rectangle. Fill it in with some color. The next class will define and draw the roof and a third class will define and draw a door. You may have a further class for one or two windows.

The locations and dimensions of the parts of the house should be variables that are parameters to the constructors. The house may be placed anywhere on the applet. You may choose the size and the colors.