Homework 4

Date Due: 1 Week

Task: Write C++ code encapsulated within a class, using the facilities of std::string to print the vowels of the following string read in from a file called input.txt  The parse the string printing each word on a separate line writing each line to a file named output.txt.  Then convert the data string to all upper case.

Print out your source code and results from your program in text (not screen capture).  Place your code, executable, input.txt and output.txt file on a floppy diskette.  Place listing and floppy in an envelope.

input.txt
The little brown fox scampers through the forest.
Expected Results
Data Line: The little brown fox scampers through the forest.
Vowels : e i e o o a e o u e o e
Token 1: The
Token 2: little
Token 3: brown
Token 4: fox
Token 5: scampers
Token 6: through
Token 7: the
Token 8: forest.
Upper Case: THE LITTLE BROWN FOX SCAMPERS THROUGH THE FOREST.
output.txt
The
little
brown
fox
scampers
through
the
forest.