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.

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.
Upper and lower case a,e,i,o,u are vowels.
Words are considered contiguous sentences, upper and lower case letters, digits, apostrophes,and hyphens(-). Instructions are in picture.
Picture also has a sample output.
I posted a similar question but the words outputted was incorrect.
Thank you.  Must be in c++ programing. User will input a file and

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

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!