Question: Java Code Write a program that stores the high and low values from a series of integers entered from the keyboard. Create 2 variables, highNum

Java Code

Write a program that stores the high and low values from a series of integers entered from the keyboard. Create 2 variables, highNum and lowNum, initiate high to zero and low to 100. Prompt the user to enter an integer until a negative number is entered. After each number is entered, check to see if it is higher than highNum or lower than lowNum, if so, set the value of the variable to the new value. After a negative number has been entered, print out the lowNum and highNum values on separate lines with labels.

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!