CS 1401 Assignment #10

Date Assigned: Tuesday, November 8, 2005 or Wednesday, November 9, 2005.

Due Date: correspondingly, Tuesday, November 15, 2005, or Wednesday, November 16, 2005, before the beginning of your lab section.

Goals: to learn how to include error-handling mechanisms in an application.

Points: This assignment is worth a total of 20 points. No late assignments will be accepted, but credit will be given for partially completed assignments turned in on time.

Assignment: This assignment builds on your work on Assignment 8. In that assignment, we assumed that the input file exists and that all the entries from the input file have the required format.

Now that you are familiar with exceptions, modify your code in such a way that your program will automatically take care of the following exceptions (both pre-defined and user-defined):

Example. If a record does not specify the author, as in:

book
title
Programming and Problem Solving with Java
year
2003
publisher
Jones and Bartlett
your program should do two things:

Comment: in the input file, the fields do not necessarily come in order: we can have author before title, or we can have title before author.

For extra credit: make sure that your program recognizes and takes appropriate care of the following three additional types of errors:

Deliverables: as announced in the labs.