CSC 171
Homework 2
Assigned Sept. 18, due Oct. 2
- Download and install
aLibrary
(note that the version on the CD-ROM doesn't work with Java version
1.4). Also copy the BlueJ projects
- c1_Example1
- c2_Draw1
- c3_Bullseye
- c3_RectangleClipping
- c3_SquareWithinSquare
- c3_TheBug_complete
from the "applications/ChapterPrograms" folder on the CD-ROM
(or the N: drive). Compile and run them to
make sure they work as is.
- Using c2_Draw1 as a model, write a program
(in a new BlueJ project named HW2a) to do programming exercise 3 on page
54 of the textbook.
- Using the chapter 3 examples as a model,
write a program
(in a new BlueJ project named HW2b) for your choice of programming
exercise 1, 2, or 3 on pages 97-98 of the textbook.
How to turn this in
You should have two BlueJ projects named HW2a and HW2b, which look like
folders to the operating system (Windows, MacOS, etc.) Zip each of
these folders, so you have two files named HW2a.zip and HW2b.zip.
Attach these two files to an email
to me.
Last modified:
Stephen Bloch / sbloch@adelphi.edu