Question: Write a program that prompts the user to provide a single character from the alphabet. Print Vowel or Consonant, depending on the user input. If
Write a program that prompts the user to provide a single character from the alphabet. Print Vowel or Consonant, depending on the user input. If the user input is not a letter (between a and z or A and Z), or is a string of length > 1, print an error message.
(Hint: read the input as a string, then test using myChar = myString.charAt(0) )
i need the program in java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
