CS 1401, Quiz 10, TR version

Date: Tuesday, November 5, 2013
Name (please type legibly, ideally in block letters): ______________________________________________________________________

1. Today, voters vote on Texas constitutional amendments. Several newspapers expressed their opinion about these amendments. Define a class Newspaper that includes the name of the newspaper and the number of amendments it endorsed. Do not forget to include a constructor method and get- and set-methods.

2. In the main program, create an object of type Newspaper describing the fact that El Paso Times endorsed 9 amendments. Later on, it decided not to support one of the amendments, so decrease the number by one. Trace your code step-by-step.

Comment: No need to write "public static void main(...)", just write down the appropriate statements from the main program.