// 9.2 import java.util.Scanner; public class AverageDoubles{ public static void main (String[] args){ Scanner reader = new Scanner(System.in); double[] list = new double[10]; // Get the inputs for (int i = 0; i < 10; i++){ System.out.print("Enter a number: "); list[i] = reader.nextDouble(); } double average = computeAverage(list); // Complete this section: Output the data in the arrays } private static double computeAverage(double[] list){ double sum = 0; for (double d : list) sum += d; return sum / list.length; } }