Create a word enlister program, a program that will enlist the words found in the inputted sentence and it will display the count of vowels and consonants in each words.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question
02. Create a word enlister program, a program that will enlist the words found in
the inputted sentence and it will display the count of vowels and consonants in
each words.
Sample run:
WORD ENLISTER PROGRAM
Enter a phrase/sentence: The apple, banana, and chico are fruits
>>Words Enlisted:
[1] THE
- 3 Letter (s)
- 2 Consonant (s)
- 1 Vowel (s)
[2] APPLE
- 5 Letter (s)
- 3 Consonant (s)
- 1 Vowel (s)
[3] BANANA
- 6 Letter (8)
- 3 Consonant (s)
- 3 Vowel (s)
[4] AND
3 Letter (s)
2 Consonant (s)
-1 Vowel (s)
[5] CHICO
- 5 Letter (8)
- 3 Consonant (s)
- 1 Vowel (s)
[6] ARE
- 3 Letter (8)
1 Consonant (8)
- 2 Vowel (s)
[7] FRUITS
- 6 Letter (s)
- 4 Consonant (s)
- 2 Vowel (8)
>> Enter 'Y' to try again: n
Program Terminated
Transcribed Image Text:02. Create a word enlister program, a program that will enlist the words found in the inputted sentence and it will display the count of vowels and consonants in each words. Sample run: WORD ENLISTER PROGRAM Enter a phrase/sentence: The apple, banana, and chico are fruits >>Words Enlisted: [1] THE - 3 Letter (s) - 2 Consonant (s) - 1 Vowel (s) [2] APPLE - 5 Letter (s) - 3 Consonant (s) - 1 Vowel (s) [3] BANANA - 6 Letter (8) - 3 Consonant (s) - 3 Vowel (s) [4] AND 3 Letter (s) 2 Consonant (s) -1 Vowel (s) [5] CHICO - 5 Letter (8) - 3 Consonant (s) - 1 Vowel (s) [6] ARE - 3 Letter (8) 1 Consonant (8) - 2 Vowel (s) [7] FRUITS - 6 Letter (s) - 4 Consonant (s) - 2 Vowel (8) >> Enter 'Y' to try again: n Program Terminated
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Problems on Dynamic Programming
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning