Homework Assignment 3

Due: 9am, April 13, 2007.

This assignment will give you practice at writing Java programs where:

Write Java programs to solve Problems 3, 7, 12, 15 and 17. in the Java Exercises Handout (see the purple book).

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 March 2007 by Mark Austin
Copyright © 2007, Department of Civil and Environmental Engineering, University of Maryland