Question: Language is Java Design and write a Java console program to estimate the number of syllables in an English word. Assume that the number of

Language is Java

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

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!