Question: In java please Determine the number of syllables in a sentence with an arbitrary number of words. Here are some rules you are required to
In java please
Determine the number of syllables in a sentence with an arbitrary number of words.
Here are some rules you are required to use for determining the number of syllables in a word. There are other more complicated cases not described in the steps below. Ignore those cases for this assignment.
StepDo toUpperCaseor toLowerCaseto the input at the beginning so you have less comparisons
Step Count the number of vowels including y aeio uy
Step Subtract for every instance of two vowels being next to each other.
Step Subtract if there's a vowel at the end of the word EXCEPT Y
For example the word feline is syllables
We determine that by taking the number of vowels we check for any vowels next to each other nonethen we see if there are any vowels at the end of the word The syllable count or
Example
Input
I am tired
Output
Thank you
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
