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

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!