All homework and solution key files are in Microsoft Word format.
Assignment #1 (due 9/11/01 within 10 minutes of the lecture class); the UCFLogo.gif file can be download here
Assignment #1 solution key (posted 9/13)
Assignment #2 (due 9/20/01 within 10 minutes of the lecture class); three sample Java programs are TwoDPoint.java, TestTwoDPoint.java, and ThreeDPoint.java; the main() method for testing the java program of Assignment #2 is implemented in a separate java file TestRectangle.java
Assignment #2 solution keys (posted 9/21; read the note before the interest() method): a Rectangle.java class; the output when running the TestRectangle java program ; and the grading sheet
Assignment #3
(due 10/11/01 within 10 minutes of the lecture class); three sample Java programs (the third added 10/03) are
Employee.java,
SampleEmployee.java, and
TestTokens.java (added 10/03).
Three input files that contain sample inputs for testing your program (added 10/03) are
input1.txt,
input2.txt (revised on 10/05, 11:50 pm), and
input3.txt.
(Added 10/07/2001) Concerning the end of keyboard input, the jdk users should read
jdkReadme.txt;
the JBuilder users should read
JBuilderReadme.txt;
Assignment #3 solution keys (posted 10/13):
the Boss.java class;
the HourlyWorker class; and
the TestEmployee class (the one that has a main());
and the 3 output files (including the prompt on the screen) when running the respective input files:
output1.txt;
output2.txt; and
output3.txt.
The grading of the assignment is based on
this grading sheet, using 3 new input files
input4.txt;
input5.txt; and
input6.txt.
Assignment #4 (posted 10/16, due 10/25 in class):
some sample java files demonstrating the use of interfaces are
Employee.java;
Compare.java;
CompareBoss.java;
SortPrint.java;
ArrOfBosses.java; and
DemoBoss.java. A smaple input file is
input.txt, the corresponding output file is
output.txt. Two sample programs posted 10/18 demonstrating the use of Vector and File I/O, and command-line arguments, are
TestFileIO.java and
Arguments.java.
You also need to use the following two files from Assignment 3's solutions:
Boss.java; and
HourlyWorker.java.
Assignment #4 solution keys (posted 10/28):
the SortOutput interface;
the SortedEmployees class; and
the TestSortedEmployees class.
The grading of the assignment is based on
this grading sheet.
Note that the SortedEmployees class uses a single Vector to save all Employee
objects; an implementation using two Vectors to save Boss and HourlyWorker
objects separately will be posted later.
Assignment #5 (posted 11/13, due 11/27 in class): use the
text's Chapter 6 and sample Java programs and links posted under the
Course Notes link for information about Java GUI programming.
Additional comments about the assignment including the test input sequences
can be found
in this document.
Assignment #5 solution key (posted 11/27):
SimpleCalculator.java (posted 11/27).
The grading of the assignment is based on
this grading sheet
(posted 12/02/01).
Assignment #6 (posted 11/22, revised 11/27, due 11/29 in class): use the
Course Notes link of additional Java sample programs for help of writing
applet programs and the associated HTML file.
Assignment #6 solution key (posted 11/29):
DrawShapes.java and
the corresponding html file (use right-click
to save this html file).
The grading of the assignment is based on
this grading sheet
(posted 12/02/01).