Vowels
Requirements: Write a function numVowels which, given a string as parameter, returns how many vowels it contains.
For example if the string is “requirements”, the function returns 5.
Before you start writing the function, answer the following questions:
- Which iteration plan is needed in this case?
- Which variables are needed for the implementation of this plan?
- How and where must they be initialized and how and where must they be updated?
