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.
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
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F48bdca59-ca67-447e-94f1-9b6e195a47db%2F88ca43f4-831e-44a3-8d5c-37ebec448491%2F87cuy8_processed.png&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning