Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

Define Management or What is Management?

Answered: 1 week ago

Question

What do you understand by MBO?

Answered: 1 week ago

Question

Make efficient use of your practice time?

Answered: 1 week ago