Java Project: The Greatest and the Least of These Date: 10/10/2012

advertisement
Java Project: The Greatest and the Least of These
Date: 10/10/2012
Instructions: Create a Java program that will find the largest and smallest number in a group of
integers. Allow the user to enter integer numbers until finished. Have the user signal the
program that they are finished entering integers by entering -999 as the last number. Do not
include -999 as one of the possible numbers.
Hint: Use a while loop to allow an unknown amount of integers to be entered. Set the while
condition to watch for the -999 signal. When the signal is found the loop should end and the
results should be displayed. The output results should display the largest and smallest numbers
that were entered.
Download