Lab 6 Part 1: Strings

Due: Thu, March 30, 11:59 pm

Part 1a) Do programmimg project 2 on page 486 (counting number of words and letters). For this problem, you may find it to be helpful to use library functions such as isalpha( char ) (described on page 355, and 994) or isalnum(char) [this one returns true if and only if the argument is a letter or a digit]. To count the number of occurences of each letter, it would be useful to remember the conversions between characters and integers. For example, what is int('c')-int('a') ? You may assume that the input string ends with a period.

Part 1b) Do programmimg project 12 on page 490 (decrypting a secret message).

As usual, you will be graded on the following criteria: fulfillment of all requirements in problem statements, correct output, good user interface, good coding style and formatting. Each problem will be graded out of 80 points.