CS35: Assignment 20

CS35: Programming and Problem Solving
Ray Ontko
Department of Computer Science
Earlham College

Due Wednesday, 1999/12/01

Reading Assignment

Read sections 11.1 through 11.5 in Deitel and Deitel. Optionally, read section 7.5 in Kernighan and Ritchie.

Programming Exercise

Modify the vowel-counting program described in Assignment 8 to read from a file whose name is specified as the first argument on the command line.

For example:

$ ./count_vowels alice.txt
There were 47 vowels encountered.

Be sure to print an appropriate message if the file doesn't exist or can't be opened for some reason.

Copyright © 1999, Ray Ontko (rayo@ontko.com).