Lab Task, Chapter 6
Exercise 6.32, page 264, from "Java How To Program" by Deitel & Deitel
Here
is the source code and
here
is the class file.