Homework Assignment 4

Due: 9am, November 20, 2009.
No extensions -- if you are not finished then just hand in what you have completed.

The purpose of this assignment is to give you practice at writing Java code for:

Solve problems 18, 19, 21, 26, 27 and 28 in the Java Programming Exercises (Green Lecture Notes).

Points to note:


Note. For each problem, hand in a copy of your program source code and a script of I/O for typical program usage.

If you are working on UNIX/Mac OS X then the procedure for creating a script is easy -- just 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.

If you are working on Windows, just cut-and-paste the output into a Word document.


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