Question: ured Programming home > 6.10. Assignment Part 3 Word Filter 6.10 Assignment Part 3: Word Filter In this as you will write a program that


ured Programming home > 6.10. Assignment Part 3 Word Filter 6.10 Assignment Part 3: Word Filter In this as you will write a program that reads in a text file containing a list of words, and writes two text files, one containing words with an even number of characters, the other containing words with an odd number of characters The program should begin by prompting the user for the name of the input file. Validate the filename to make sure it ends in .txt. If it does notre prompt the user after printing an informative message. For example Enter the name of the input file words.doc Only filenamendingin txt are accepted Enter the of the input file: The program should attempt to open the file for reading if there is an error (for example, if the file does not exist), then the program should output an error message and exit by returning from main(). For example Enter the of the input files no much file.it Failed to open til for readnouch fil.txt Assuring the file opens successfully the program should prepare the two output files These fries should be named .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
