Individual Assignment 10 Solution

$30.00

Description

Submit the java file named Vowels.java with the static method named numOfVowels such that

  • The method takes only a single parameter: a string

  • The method returns an int -> the number of vowels in the parameter (ignoring ‘y’)

  • There are no variables defined outside of a method.

  • numOfVowels is recursive

Note that the marks are only added if your solution is recursive.


error: Content is protected !!