CS 1401 Assignment #12

Date Assigned: Monday, April 16, or Tuesday, April 17, 2007.

Due Date: Monday, April 23, or Tuesday, April 24, 2007, before the beginning of your lab section.

Objective: The main objective of this assignment is to learn to handle exceptions.

Programming assignment: add exceptions to our Programming Assignment 7.

Programming Assignment 7: reminder. To help compute average grades and student GPAs,

Test your program on an example of a simple file with 2 or 3 numbers.


New part: If the file is empty or if one of the numbers in the file is negative, throw and handle appropriate exceptions -- and inform the user about the problem.

Homework assignment: on a separate sheet of paper, solve Ex. 4 and 6 at the end of Chapter 12 (on pp. 799 and 800).

Deliverables: as instructed by your TA.