Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions