Question: Question 1: (5 Marks) Write a Java program with an input from the user as single character from the alphabet. Print either Vowel or Consonant

 Question 1: (5 Marks) Write a Java program with an input

Question 1: (5 Marks) Write a Java program with an input from the user as single character from the alphabet. Print either Vowel or Consonant based on the user input. If the user input is not a letter between a and zor A and Z), or is a string of length> 1, an error message will be displayed. Sample Data: Srputant Drost lettersson tut Eu single character Question 2: (5 Marks) Write a Java program to prompt the user to enter 3 integers (A, B, and then display these numbers from the lowest to the highest. Note that there are 6 different cases to handle proper order As an example, a user entered 10 for A., 5 for B and 14 for C: the output of the program should look like this Enter number A? 10 Enter number B? Enter number C? 14 Your numbers ordered from lowest to highest are 5

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!