Question
Design and code a Java console application that takes as input five integer values and produces as output the lowest and highest values of these
Design and code a Java console application that takes as input five integer values and produces as output the lowest and highest values of these five integer values.
The application uses Java looping constructs to implement its functionality.
The application is to read five integer numbers entered by the user from the keyboard on a single line using a Java looping construct.
The application then prints out the highest integer and the lowest integer numbers that were entered.
If the user enters 1 987 23 568 7865, The out put should show highest number as 7865 and lowest number as 1.
The output should look as follows:
enter 5 integers: 1 987 23 568 7865
highest number: 7865
lowest number: 1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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