(Solved) : Write Program Java Reads Numbers Keyboard One Per Line Gets Zero Print Number Values Enter Q43960474 . . .
Write a program inJava which reads in numbers from the keyboard, one per line, untilit gets a zero. Then print out the number of values entered, thesum of all values, the largest number, the smallest number, and theaverage of all the numbers. Do not count the zero. (So, if you readin 1,6,7,4,0, the average is 4.5). Here is sample output from oneversion of the program:
% ./stats 2 4 6 12 -9 0 # items: 5 Sum: 15 Max: 12 Min: -9 Mean: 3 %
Expert Answer
Answer to Write a program in Java which reads in numbers from the keyboard, one per line, until it gets a zero. Then print out the…
OR