
Postlab Activities
Exercise 1: Postlab Exercise 1 in Chapter 7 asked you to collect statistics on a sample
of text. Rewrite your solution using an enumeration type to represent all of the items
that you wish to count.
Exercise 2: Postlab Exercise 2 in Chapter 7 asked you to design and implement a test
plan for the program in Exercise 1. Can you use the same test plan for your revised
program? Explain.
Exercise 3: Scoring a tennis game is different from scoring any other game. The
following table shows how a tennis game is scored. The score is always given with the
server’s score first. In this table, Player 1 is the server.
Score Player 1 Wins Point