Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago