
Lesson 16-6: Case Study Maintenance
Templates, Operator Overloading, and Exceptions | 421
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: The Starship program throws an exception RowOverflow if more than two passengers
are assigned to a given row. Remove this exception and have the code assign the passenger to the
first row that has a vacant seat.
Exercise 2: Write a test plan that tests your changes in Exercise 1 and the other exception
conditions.
Exercise 3: Implement the test plan outlined in Exercise 2.
78828_CH16_DaleLab 5/22/09 7:48 AM Page 421