Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+14 votes
asked in CSC211_Winter2018 by (8 points)

I was able to check for a single vowel.

1 Answer

+7 votes

You could store the length of the string as an integer and then check each character of the string using a for loop that repeat "int length" number of times. When checking each character it could return false if it is not a vowel. If it makes it all the way through the for loop without returning false you would then return true.

answered by (8 points)