A teacher wants to know how many vowels a sentence has.
The vowels are a, e, i, o, u, in small or capital letters. Every other character (consonants, spaces, digits, symbols) is not a vowel.
Complete the method countVowels so that it returns the number of vowels in the given text.
One line of text. It is not empty and may contain spaces.
One integer: the number of vowels in the line.
Input:
Hello World
Output:
3

A teacher wants to know how many vowels a sentence has. The vowels are `a`, `e`, `i`, `o`, `u`, in small or capital letters. Every other character (consonants, spaces, digits, symbols) is not a vowel. Complete the method `countVowels` so that it returns the number of vowels in the given text. ### Input Format One line of text. It is not empty and may contain spaces. ### Output Format One integer: the number of vowels in the line. ### Example Input: ``` Hello World ``` Output: ``` 3 ``` A word is a palindrome if it reads the same from left to right and from right to left. Capital and small letters count as the same letter, so `Madam` is a palindrome. Complete the method `isPalindrome`. Use a `StringBuilder` to build the reversed word. ### Input Format One word with only letters (no spaces). ### Output Format Print `Palindrome` if the word is a palindrome, otherwise print `Not a palindrome`. ### Example Input: ``` Madam ``` Output: ``` Palindrome ``` Marks of some students are stored in an array. Find the highest mark and the lowest mark. Complete `highest` and `lowest`. Marks are whole numbers and can be negative (a negative mark can come from a wrong answer penalty). The array has at least one number. ### Input Format The first line has `n`, the number of marks. The next line has `n` integers. ### Output Format Two lines: ``` Highest: <largest mark> Lowest: <smallest mark> ``` ### Example Input: ``` 5 45 78 12 90 33 ``` Output: ``` Highest: 90 Lowest: 12 ```