Question: In Java, write a program that prompts the user to input a sequence of characters and outputs the number of vowels. You will need to

In Java, write a program that prompts the user to input a sequence of characters and outputs the number of vowels. You will need to write a method to return a value called isAVowel which will return true if a given character is a vowel and returns false if the character is not a vowel. A second method, called isAConstant, should return true if a given character is a constant and return false if the character is not a constant. Set the program to discard case.

Sample:

Please enter a string of characters: Little Miss Muffet sat on her tuffet.

The string Little Miss Muffet sat on her tuffet contains 20 constants and 10 vowels.

Would you like to enter a new string (y/n)?

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!