Schwartz & Christiansen Chapter 5 Exercises


1.  Write a program that reads in a string, then prints that string and its mapped value
according to the mapping represented in the following table:

input		Output
red			apple
green		leaves
blue			ocean

2. Write a program that reads a series of words with one word per line until end-of-file,
then prints a summary of how many times each word was seen.  (For an extra challenge,
sort words in ascending Ascii order in the output.)

Questions about the questions? Send mail to Robert Katz: katz@cis.highline.ctc.edu
Last Update January 19, 2000