Question: Java *4.13 (Vowel or consonant?) Write a program that prompts the user to enter a letter and check whether the letter is a vowel or
Java
*4.13 (Vowel or consonant?) Write a program that prompts the user to enter a letter and check whether the letter is a vowel or consonant. Name it VowelConsonant. Run the program with different input values. Document the code and follow the output model shown (which show both uppercase and lowercase letters as input). The exercise is intended to familiarize the student with the static methods from the Java library class Character. The only instance method from the Java library class String that is allowed to be used in this program is .charAt().) Here is a sample run:
Enter a letter: B B is a consonant
Enter a letter grade: a a is a vowel
Enter a letter grade: # # is an invalid input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
