Question: 8:45 AM Wed Mar 13 94%- 3.scanner_string AverageLine_lab java aplus.doc A+ Computer Science AVERAGE LINE Lab Goal This lab was designed to teach you more

 8:45 AM Wed Mar 13 94%- 3.scanner_string AverageLine_lab java aplus.doc 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

8:45 AM Wed Mar 13 94%- 3.scanner_string AverageLine_lab java aplus.doc 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. iles Needed Sample Data: 9 10 5 20 11 22 33 44 55 66 77 48 52 29 100 50 29 Average.java verageRunner ava 100 90 95 98 100 97 Sample Output 9 10 5 20 average-11.000 11 22 33 44 55 66 77 average44.000 48 52 29 100 50 29 average51.333 average0.000 8:45 AM Wed Mar 13 1 94%- Average.java //(c) A+ Computer Science //www.apuscompsci.com /Name - import java.util.Scanner; import static java.lang.System. public class Average private String line; public Average0 public Average(String s) public void setLine(String s) public int getCount0 int count-0 return count; public int getSum() int sum-0; return sum; public double getAverage0 double average 0.0; return average; public String getLine) return public String toString( return 8:45 AM Wed Mar 13 94% AverageRunner.java //(c) A+ Computer Science //www.apuscompsci.com /Name import java.util.Scanner; import static java.lang.System. public class AverageRunner public static void main( String args0)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!