Question: C# Programming: Write a program named CountVowelsModularized that passes a string to a method that returns the number of vowels in the string. Note: For
C# Programming:
Write a program named CountVowelsModularized that passes a string to a method that returns the number of vowels in the string.
Note: For testing purposes, Y will not be counted as a vowel.
(I've attempted to solve it below but it did not work)

CountVowelsModularized.cs Instructions Write a program named CountVowelsModularized that passes a string to a method that returns the number of vowels in the string 1 using System; 2 using static System.Console; 3 class CountVowelsModularized 4 5public static void Main() int count-0 Note: For testing purposes, Y will not be counted as a vowel 10 value[i] o' value[i]'u' value[i]A' value[i]E' value[i] 'I' value[i]'0' value[i]U) GRADING As you complete the steps above, you can use the Test button to check if the lab tests are passing. Once you are satisfied with the results, use the Grade button to save your score 12 13 14 15 16 17 18 19 20 21 count++; return count; public static int CountVowels(string phrase) string str; Console.Write("Input the string: "); str Console.ReadLine(; Console.WriteLine( "Number of vowels [0]", ularized(str)) CountVowelsMod 23 24 25 26 Console.ReadLine; Console.ReadLine
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
