Question: Problem1: Create a java program that accepts 5 integers and sorts the integer to lowest to highest or vice versa depending on the choice

 

Problem1: Create a java program that accepts 5 integers and sorts the

Problem1: Create a java program that accepts 5 integers and sorts the integer to lowest to highest or vice versa depending on the choice of the user. If sort order choice is not on the list, the program will return "Invalid option. Program terminated.". Name the problem as Surname Problem1.java ******SAMPLE OUTPUT****** Enter integer 1: 3 Enter integer 2:5 Enter integer 3: 25 Enter integer 4: 10 Enter integer 5: 18 1- lowest to highest 2- highest to lowest Sort order: 2 25 10 18 5 3 ******SAMPLE OUTPUT****** Problem 2: Create a java program that accepts 1 string/character and determines if the input is a vowel or consonant. If the input is not a vowel or consonant the program must return "Invalid input. Program terminated.". Name the problem as Surname Problem2.java ******SAMPLE OUTPUT**** Enter an alphabet: m m is consonant ******SAMPLE OUTPUT****** NOTE: YOU CANNOT USE ARRAY

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here are Java programs for both problems Remember to replace Surname with your actual surname Problem 1 SurnameProblem1 import javautilScanner public ... View full answer

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 Programming Questions!