Homework Assignment 4

Due: 9am, May 9, 2007. No extensions!
If your work is not complete, just hand in what you have completed. I will hand out solutions on the last day of class.


This assignment will give you practice at writing Java programs that: (1) create and work with objects, and (2) store collections of objects in arraylists.

Getting the Questions

  1. I will hand out the assignment questions in class on Wednesday.

Hint. Most of what you need can be found on the "java examples" web page and in the purple class reader:


Note. For each problem, hand in a copy of your program source code and a script of I/O for typical program usage. To create a script, type something like:

    prompt >> script output-file

Now all input/output on the screen will be echoed to the file "output-file". To terminate the script, type:

    prompt >> exit

Now print "output-file" and hand it in.


Developed in April 2007 by Mark Austin
Copyright © 2007, Department of Civil and Environmental Engineering, University of Maryland