Lab 6 Part 1: Strings

Due: Sun, March 29 (now due Apr 5), 11:59 pm

Part 1a) Do programmimg project 2 on page 486 (counting number of words and letters) (In 7th ed, project 2 on page 492). 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). (In 7th ed, it is on page 495-6, still project 12)

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.