Please answer question in its entirity. incomplete answers will be disliked. please add comments on code. attatch all code files and output below. thank you in advance
3 Assignment 3 - Words Menu Make sure you have read and understood the chapter this week before submitting this assignment. Hand in only one program, please Consecutive vowels Understand the Application The Foothill library needs a program to quickly scan a file for certain sequences or matching phrases. Use the following words.txt file, we are going to build a menu and one of the options will be to find the largest consecutive set of vowels. We will only use a, e, i, o, u for this test. For example, aqueous has four consecutive vowels. Is there one in the list with more? Which is it? The Program Spec ts Proctor The words.txt file contains an alphabetically sorted list of English words. Note that the words are in mixed upper and lowercase. Our main will contain a menu of things we can do to this list. Create a WordList class that has separate .hand.cpp files, which includes the following: private members: words[- a STATIC dynamic array that contains the words in the file numUpperCase - a static int holding the number of uppercase words . numLowerCase - a static int holding the number of lowercase words public members constructor set numUpperCase and numLowerCase to 0. mutators and accessors for the number of upper and lowercase words. .static bool readFile(int& numUpper, int& numLower) - STATIC method that will hard code in the name of the hle. Think of it like the database of words. As you read it in, count the number of uppercase, the number of lowercase, and then convert all into lowercase to be stored in the artay. This will make it much easier to search the array later. If there is a problem reading the file, return false, otherwise true. string findMaxVowelWord - this will search through the antay and find the word that has the largest consecutive number of vowels in it. It should return the word. IntrumTotalWords - returns the total words in the list. Can you think of a very simple way to do this? Maino . Our main() will create two WordList objects. The first object one should read in the file. The second should be able to use the file that was read in and be used for setting up a menu of options. The menu should only refer to the second object Create a method void displayMenu() that will only display the following: Number of uppercase words Total words in the array Word containing the longest consecutive vowels Exit The method int menuChoice() that will return the number choice of the user from the menu. Do not return until a valid choice is entered, even if it takes years. The WordList class should not display anything, it should return values to the main() and its methods, where all I/O will be handled Use constants, not literals, for everything you can in this and ally assignments. Test Run Requirements: Be sure to test bad input on all possible chances of the program. Show the answers to all options in the menu. A partial sample run is given at the bottom of this page. Comments Don't forget to put comments in your code. I expect that you put a header above the top of the program stating your name and what program it is. Each section of important code should have comments as well as calculations. Sample Output Here is an example of a partial working run, except that the answers are made up and are not real: Menu 1) Number of uppercase words 2) Totol words in the array 3) Word containing the longest consecutive vowels Menu: 1) Number of uppercase words 2) Total words in the array 3) Word containing the longest consecutive vowels 4) Exit Your choice: 0 Please enter a number between 1-4 Your choice: 1 The number of uppercase words is: 321 Menu: 1) Number of uppercase words 2) Total words in the array 3) Word containing the Longest consecutive vowels 4) Exit Your choice ...etc Previous Next MacBook 209 000 F FS 76 DI 3 % A 4 5 CO & 7 C 8 E 9 R 0 T 3 Assignment 3 - Words Menu Make sure you have read and understood the chapter this week before submitting this assignment. Hand in only one program, please Consecutive vowels Understand the Application The Foothill library needs a program to quickly scan a file for certain sequences or matching phrases. Use the following words.txt file, we are going to build a menu and one of the options will be to find the largest consecutive set of vowels. We will only use a, e, i, o, u for this test. For example, aqueous has four consecutive vowels. Is there one in the list with more? Which is it? The Program Spec ts Proctor The words.txt file contains an alphabetically sorted list of English words. Note that the words are in mixed upper and lowercase. Our main will contain a menu of things we can do to this list. Create a WordList class that has separate .hand.cpp files, which includes the following: private members: words[- a STATIC dynamic array that contains the words in the file numUpperCase - a static int holding the number of uppercase words . numLowerCase - a static int holding the number of lowercase words public members constructor set numUpperCase and numLowerCase to 0. mutators and accessors for the number of upper and lowercase words. .static bool readFile(int& numUpper, int& numLower) - STATIC method that will hard code in the name of the hle. Think of it like the database of words. As you read it in, count the number of uppercase, the number of lowercase, and then convert all into lowercase to be stored in the artay. This will make it much easier to search the array later. If there is a problem reading the file, return false, otherwise true. string findMaxVowelWord - this will search through the antay and find the word that has the largest consecutive number of vowels in it. It should return the word. IntrumTotalWords - returns the total words in the list. Can you think of a very simple way to do this? Maino . Our main() will create two WordList objects. The first object one should read in the file. The second should be able to use the file that was read in and be used for setting up a menu of options. The menu should only refer to the second object Create a method void displayMenu() that will only display the following: Number of uppercase words Total words in the array Word containing the longest consecutive vowels Exit The method int menuChoice() that will return the number choice of the user from the menu. Do not return until a valid choice is entered, even if it takes years. The WordList class should not display anything, it should return values to the main() and its methods, where all I/O will be handled Use constants, not literals, for everything you can in this and ally assignments. Test Run Requirements: Be sure to test bad input on all possible chances of the program. Show the answers to all options in the menu. A partial sample run is given at the bottom of this page. Comments Don't forget to put comments in your code. I expect that you put a header above the top of the program stating your name and what program it is. Each section of important code should have comments as well as calculations. Sample Output Here is an example of a partial working run, except that the answers are made up and are not real: Menu 1) Number of uppercase words 2) Totol words in the array 3) Word containing the longest consecutive vowels Menu: 1) Number of uppercase words 2) Total words in the array 3) Word containing the longest consecutive vowels 4) Exit Your choice: 0 Please enter a number between 1-4 Your choice: 1 The number of uppercase words is: 321 Menu: 1) Number of uppercase words 2) Total words in the array 3) Word containing the Longest consecutive vowels 4) Exit Your choice ...etc Previous Next MacBook 209 000 F FS 76 DI 3 % A 4 5 CO & 7 C 8 E 9 R 0 T