Question: Write a JAVA program that reads a series of test scores from a recent test (integers in the range 0 to 100) until a sentinel
Write a JAVA program that reads a series of test scores from a recent test (integers in the range 0 to 100) until a sentinel value is read. A sentinel value is the value used to determine when to stop. The program then prints the following statistics for the test scores read in:
1. Count (how many test scores were read in)
2. Sum (of all of the test scores)
3. Average (mean). Be sure this is a double to retain the precision.
4. Minimum Test score read in
5. Maximum Test score read in Be sure your output is labeled as to what it is and easy to read. Use the following multiple Strings for your sentinel: stop, exit.
Test your program using the following input data: 72 89 100 45 78 60 34 89 93 74
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
