/* Possible solution to Project 3 which uses a standard array */ import java.util.Scanner; public class proj3 { public static void main(String[] args) { int size = 0; // how many values we'll be storing double sum = 0; // running sum used to calculate average Scanner easy = new Scanner(System.in); // ask the user how many values must be read, hold out for a good answer while(size <= 0) { System.out.println("Enter the number of values to read: "); size = easy.nextInt(); } double[] values = new double[size]; // ask the user for the values for(int i=0; i average) { System.out.println(values[i]); } } } }