Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started