Question: Solve the following problem: Write a program to read a list of nonnegative integers and to display the largest integer the smallest integer, and the


Solve the following problem: Write a program to read a list of nonnegative integers and to display the largest integer the smallest integer, and the average of all 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 fractional part. This problem can be also found on page 255, problem #5 in your textbook. Add 5 comment lines (comment lines start with //) at the very top of your program with your name, your class and section, the project number, due date, and a short description of the program. Please submit the following file(s) to me on the due date. Soft copy of your program. That is, you need to submit your java file(s) using Canvas. 1. Detailed information for the project #3 . Class name: LargeSmallAverage Input: 2 20 10 5 10 2-5 Expected output: Minimum Number: 2 Maximum Number: 20 Average: 8.1666666 (Data type should be double)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
