Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

) The count of vowels in a string could be found by counting the first character

ID: 3619954 • Letter: #

Question

) The count of vowels in a string could be found by counting the first character if it is a vowel plus the count of the remaining characters that are vowels. Add a static method called "countVowels" to your Recursion class to find the number of vowels in a string recursively in this way. Your method should not store the count and should not pass the count as a parameter. It should return the integer count of vowels in the passed string. Include a main method in your class which asks the user for a string and prints the number of vowels it contains. Assume the vowels are { a, e, i, o, u }.

Add a static method called "characterSum" to your Recursion class that recursively sums thecharacter values in a passed string. Its only parameter is the passed string and it does not store the sum as it runs. Each recursive call should get the integer value of only one character. Modify the main method to ask the user for a string and print the sum of its character values.

Explanation / Answer

}