Question: Scala Programming Write a function named countVowels that inputs a String and outputs an Int which counts the number of occurrences of a vowel in
Scala Programming
Write a function named countVowels that inputs a String and outputs an Int which counts the number of occurrences of a vowel in a given string.
Vowels are a, e, i, o, u.
Example
Input: "aaatchoU" Output: 5.
Capital letters of vowels should also count as a vowel.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
