[Solved]Given Strings String Array Count Number Words Begin E T 0 Characters Calculating Counts As Q37018151

it is for JAVA
Given Strings in a String array, count the number of words that begin with a, e, T, 0/ự, and other characters. After calculating the counts assign the integer array vowelCounts with these values, where the ‘a count is at index 0, the ‘e’ count is at index 1, the T count is at index 2 the o/u’ count is at index 3, and the other count is at index 4 Strings beginning with ‘o or ‘u’ should be counted together by utilizing the same program variable. Count the other vowels and characters separately. Use the respective variables provided and you do not need to handle capital letters in your code. Write a for loop with a switch statement inside to determine the counts before assigning the counts to the integer array vowelCounts LAB ACTIVITY 20.5.1: Count Vowels 0/10 CountVowels.iava Load default template 1 import java.util.Arrays; 3 public class CountVowels f 4 5 public static void main (String[] args) CountVowels c new CountVowels); string[] stringarray: {“evacuee”, “sequoia”, “utopia”, “idea”, “luau”, “aura”, “iris”, “adieu”, “eerie”, “ataxia”, “odious”, “iguana”, “quinoa” “aloe”, System.out.println (Arrays.toString (c.countNumVowels(stringArray))); 10 12 13 public int[] countNumVowels (String[] stringArray) 14 15 16 17 18 int[] vowelCounts new int[5] int aCounter 0, eCounter -e, iCounter-0, ouCounter -0, otherCounter 0; // Student TODO /I end Student TODO 20 21 23 Show transcribed image text Given Strings in a String array, count the number of words that begin with a, e, T, 0/ự, and other characters. After calculating the counts assign the integer array vowelCounts with these values, where the ‘a count is at index 0, the ‘e’ count is at index 1, the T count is at index 2 the o/u’ count is at index 3, and the other count is at index 4 Strings beginning with ‘o or ‘u’ should be counted together by utilizing the same program variable. Count the other vowels and characters separately. Use the respective variables provided and you do not need to handle capital letters in your code. Write a for loop with a switch statement inside to determine the counts before assigning the counts to the integer array vowelCounts LAB ACTIVITY 20.5.1: Count Vowels 0/10 CountVowels.iava Load default template 1 import java.util.Arrays; 3 public class CountVowels f 4 5 public static void main (String[] args) CountVowels c new CountVowels); string[] stringarray: {“evacuee”, “sequoia”, “utopia”, “idea”, “luau”, “aura”, “iris”, “adieu”, “eerie”, “ataxia”, “odious”, “iguana”, “quinoa” “aloe”, System.out.println (Arrays.toString (c.countNumVowels(stringArray))); 10 12 13 public int[] countNumVowels (String[] stringArray) 14 15 16 17 18 int[] vowelCounts new int[5] int aCounter 0, eCounter -e, iCounter-0, ouCounter -0, otherCounter 0; // Student TODO /I end Student TODO 20 21 23
Expert Answer
Answer to Given Strings in a String array, count the number of words that begin with a, e, T, 0/ự, and other characters. After c… . . .
OR

