
Lesson 10-3: Enumeration Data Types
User-Defined Data Types | 241
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Reformat is the shell of a program designed to read characters and process them in
the following way.
Lowercase character Converts to uppercase and writes the character
Uppercase character Writes the character
Digit Writes the digit
Blank Writes a blank
Newline Writes newline
Any other character Does nothing
// Program Reformat reads characters from file DataIn and
// writes them to DataOut with the following changes:
// all letters are converted to uppercase, ...