Question: Averager.html Download Averager.html (866 Bytes) Write a complete Java program called Averager (without the quotation marks) that does the following Prompts the user to enter

Averager.html Download Averager.html (866 Bytes) Write a complete Java program called "Averager" (without the quotation marks) that does the following Prompts the user to enter positive integers and -1 (the sentinel value) to stop data entry . Uses a do-while loop . Computes the average of the numbers entered before the sentinel Prints "The average of the numbers you entered is X," where X is the average of the positive numbers that the user entered before the sentinel, printed to two decimal places * Validates data (i.e., assumes integers are entered and checks whether the integers entered are positive) and informs the user whether invalid data are entered, but stays in the loop until the sentinel is entered
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
