Question: question 2 the meteorological service requires a program to allow...
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 should be same as the graph below
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
Assume user always enter number.
answer need to be java code at eclipse
Attach screenshot on java coding and output.
pls use code as mention below, as
1. Scanner kb = new Scanner(System.in);
and others code that are used by beginner and easy
something like WHILE / DO / IF / ELSE / DOUBLE.