Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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