Question: 2. Program 2 - Vowels Count In this question you are asked to implement a program that finds subsequence that contains the highest frequency of




2. Program 2 - Vowels Count In this question you are asked to implement a program that finds subsequence that contains the highest frequency of vowels given a short paragraph. For simplicity, we will be interested in subsequences of a particular length, n that will be provided as part of the input. Write a program that takes the name of a plain text file that contains a short paragraplh and an integer n. You will then find the indices of the subsequence of paragraph of lengtlh n that contain the highest frequency of vowels in it. For example, if the paragraph is 1 The class teacher asks students to name an 2animal that begins with an ''E' One boy says, ''Elephant 4 Then the teacher asks for an animal that 5 begins with a ''T' 6 |The same boy says, 'Two elephants.,, 7The teacher sends the boy out of the class 8 for bad behavior 9After that she asks for an animal beginning
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
