Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Here are Java programs for both problems Remember to replace Surname with your actual surname Problem 1 SurnameProblem1 import javautilScanner public ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started