Write a program to read a list of nonnegative integers and to display the largest integer, the smallest integer, and the average of all the integers. The user indicates the end of the input by entering a negative sentinel value that is not used in finding the largest, smallest, and average values. The average should be a value of type double, so that it is computed with a fractional part.
The solution for this project includes a default case to print a message if no positive integers are entered.
See the code in LargeSmallAverage.java.
Computer Science & Information Technology
You might also like to view...
An object on a form or report that displays data or text, performs actions, and lets you view and work with information
a. Condition b. Design c. Control
Computer Science & Information Technology
Images provided by online providers are ________
A) online pictures B) Shapes C) SmartArt D) WordArt
Computer Science & Information Technology