Question: Please use while loop. A+ Computer Science AVERAGE LINE Lab Goal : This lab was designed to teach you more about using Scanner to chop
A+ Computer Science AVERAGE LINE Lab Goal : This lab was designed to teach you more about using Scanner to chop up Strings. Lab Description : Take a group of numbers all on the same line and average the numbers. First, total up all of the numbers. Then, take the total and divide that by the number of numbers. Format the average to three decimal places. Sample Data : 9 10 5 20 11 22 33 44 55 56 77 48 52 29 100 50 29 0 100 90 95 98 100 97 Files Needed :: Average.java AverageRunner.java Sample Output : 9 10 5 20 average = 11.000 11 22 33 44 55 66 77 average = 44.000 48 52 29 100 50 29 average = 51.333 0 average - 0.000 100 90 95 98 100 97 average - 96.667
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
