Question: This assignment is an exercise in reading and writing files, manipulating strings and string functions, gathering statistics, and the use of complex functions. Read in

 This assignment is an exercise in reading and writing files, manipulating

This assignment is an exercise in reading and writing files, manipulating strings and string functions, gathering statistics, and the use of complex functions. Read in an input file name. If it is not a valid file continue to prompt the user until a valid file is read in. Read in an output file name. If it exists it will be over written. All output should go to the output file instead of standard output. Write the input file to the output file and make all alphabetic characters upper case. Count the number of characters. Count the number of words (words are groups of one or more letters separated by a space, tab, return character or punctuation). Keep track of the size of the largest word. The size of the word should ignore any punctuation. Keep track of the size of the smallest word. The size of the word should ignore any punctuation. Print out the number of characters, number of words, size of the smallest word, size of the largest word. The file will contain only words (no numbers just minor punctuation). There will be no limit to the number of words. You must open the file and read each individual word using standard input (cin) until the end-of-file is detected calling The files must be closed properly. No global variables, other than constants! Use the const qualifier on member functions wherever it is appropriate. You will need to use the library for output You must use functions with parameters and return values

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!