I wrote a helper function is_vowel for my function countSyllables. All parts of my program are running fine except this portion. The issue is when I run the program the syllable count is way off. Where exactly did I go wrong in my is_vowel argument? And if someone finds the issue can you explain why it's wrong? Thank you.
Also, not sure if this helps, but i created the string tempWord with the intention of temporarily storing one word at a time (from a sentence in main function). I thought in this way I would be able to more accurately count the number of syllables, but that doesn't seem to be the case...