Question: Write a program that asks the user for a word or phrase and then prints out the number of vowels in the word or phrase.
Write a program that asks the user for a word or phrase and then prints out the number of vowels in the word or phrase. We will considervowels to be only the letters a, e, i, o, and u. We will not consider the lettery to be a vowel. Remember to handle both uppercase and lower case letters. You program should contain at least 2 methods: the main method and a method for counting the number of vowels. If you get the first part working, modify your program to allow the user to enter multiple words. Use a sentinel value such as the letter 'q' or the word "quit' to signal the end of user input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
