Question: Program #1 (34 points): Write a C++ program (in file named vowels. cpp) as follows. The main function of the program prompts the user to

 Program #1 (34 points): Write a C++ program (in file named

Program #1 (34 points): Write a C++ program (in file named vowels. cpp) as follows. The main function of the program prompts the user to enter a string. The main function then passes the string as argument to another recursive function named countVowels (...) (part of file vowels.cpp). The recursive function takes the string argument as a parameter and recursively counts and returns the number of vowels (a, e, i, o, u) in the passed string. Format the output as shown below and use the sample test data below to test your code. Allow the user to enter the input string using proper input prompt. Integrate a simple menu in the program with these options: 1. Read input string 2. Compute number of vowels 3. Quit program Do Not hard-code test data in the code. Test data is entered using the menu options. Test your code with the following sample inputs and format the output as shown below. You entered string: This is a test input Number of vowels: 6 You entered string: Hello world Number of vowels : 3 You entered string: My list of Objects Number of vowels: 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!