The Meteorological service requires a program to allow the operator to enter the rainfall level. The program keep accepting the rainfall level until a negative or zero value is entered. The program will keep displaying the current min, max and running average rainfall level after an entry is made. The program terminates by the operator entering a negative value or zero and displaying the total number of entries made.
Sample output. The text in bold is the user inputs.
(Note you need not make the user inputs bold in actual program)
Enter rainfall : 3.2
Min : 3.2 Max : 3.2 Ave : 3.2
Enter rainfall : 3.8
Min : 3.2 Max : 3.8 Ave : 3.5
Enter rainfall : 2
Min : 2.0 Max : 3.8 Ave : 3.0
Enter : -1
Rainfall entries made : 3
No error check required.
Assume user always enter number.
answer need to be java code at eclipse
dont mind attach screenshot on java coding and output