
Postlab Activities
Exercise 1: Write a functional design and a program to analyze a sample of text.
Count the instances of the following categories of symbols:
• Uppercase letters
• Lowercase letters
• Digits
• End-of-sentence markers (periods, explanation points, and question marks)
• Intrasentence markers (commas, semicolons, and colons)
• Blanks
• All other symbols
Use a switch statement in your processing.
After collecting these statistics, use them to approximate the following statistics:
• Average word length
• Average sentence length
Exercise 2: Design and implement a test plan for the program in Exercise 1.
Exercise 3: In Chapter 5, Postlab Exercise ...