Question: IN C++ Write a program that reads a word and prints the number of syllables in the word. For this exercise, assume that syllables are

IN C++

IN C++ Write a program that reads a word and prints thenumber of syllables in the word. For this exercise, assume that syllables

Write a program that reads a word and prints the number of syllables in the word. For this exercise, assume that syllables are determined as follows: Each sequence of vowels a e io u y, except for the last e in a word, is a vowel. However, if that algo- rithm yields a count of O, change it to 1. For example, Word Syllables Harry hairy 2 2 1 1 hare the 1. Your program needs to prompt the user for an input string (i.e., Harry, hairy, hare, and the). 2. Your program should produce a report with a header (i.e. Word for the first column, and Syllabus for the second column) for each column. 3. Your report should look like the following Word Syllabus Harry 2 hairy 2 hare 1 the 1

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!