Question: Java Write a Java program ( in file named vowels.java ) as follows. The main function of the program prompts the user to enter a
Java
Write a Java program in file named vowels.java 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 countVowelspart of file vowels.java The
recursive function takes the string argument as a parameter and recursively counts and returns the
number of vowels 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.
The class defines the following member functions:
Integrate the following simple menu in the program with these options:
MAIN MENU
Read input string
Compute number of vowels
Exit program
Enter option number:
Always redisplay the menu after an option other than option is fully exercised with blank lines
before and after the menu.
Test data is entered using the menu options. Do Not use output labels as input prompts. Test your code with
the following sample inputs and format the output as shown below. Notice how output values are linedup
after the labels.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
