Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+14 votes
asked in CSC211_Winter2018 by (1 point)
0

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 (1 point)
...