Computer Programming I - Assignment 6 | CS 121, Assignments of Computer Science

Material Type: Assignment; Class: Computer Programming I; Subject: Computer Science; University: Pace University-New York; Term: Fall 1999;

Typology: Assignments

Pre 2010

Uploaded on 08/09/2009

koofers-user-7ix-2
koofers-user-7ix-2 🇺🇸

4

(1)

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
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.

Partial preview of the text

Download Computer Programming I - Assignment 6 | CS 121 and more Assignments Computer Science in PDF only on Docsity!

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.