Question: Language is Java. Other answer was not correct. Should be able to count more than two syllables and only show one line telling the user
Language is Java. Other answer was not correct. Should be able to count more than two syllables and only show one line telling the user how many syllables there are.
Design and write a Java console program to estimate the number of syllables in an English word. Assume that the number of syllables is determined by vowels as follows. Each sequence of adjacent vowels (a, e, i, o, u, or y), except for a terminal e, is a syllable. However, the minimum number of syllables in an English word is one.
The program should prompt for a word and respond with the estimated number of syllables in that word. A run of the program should look exactly like this:
Enter a word: hairy "hairy" has 2 syllables
Cannot use an array!!! Do NOT use continue or break!
My program accepts information fine, I'm just having trouble with the loop that counts how many syllables are in the string.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
