Question: Must be in c++ programing. User will input a file and the program will output how many constants, vowels, and words are in that file.
Write a program that reads the text file specified by the user and determines and displays how many consonants, vowels, and words are in the file. The user must be allowed to enter the name of the file to be processed. For the purposes of this assignment assume the set of uppercase and lowercase letters (a, e, i, o, and u) are the vowels. Words are contiguous sequences of word characters. Word characters are the uppercase and lowercase letters (a -z), digits, apostrophes (), and hyphens () Hint: Write several small functions to help you test individual characters. Remember every function definition must be preceded by a comment that tells what the function does, the arguments it takes, and the values it returns (if any). Sample output of a program that satisfies the requirements of this assignment is given below. Sample Output 1: in a file. This program will find the number of consonants, vowels, and words Enter the name of a file: Gettysburg.txt Reading Gettysburg.txt Gettysburg.txt has: Consonants: 714 Vowels: 457 Words: 283 Page 1 of4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
