Hello, I can get the average and maximum score on this example:
import java.util.Arrays;
public class ArrayDemo1 {
public static void main(String args[]) {
double scores[] = {84.2,76.4,92.0,98.9,81.3};
System.out.println("The scores are:");
for (int i = 0; i < scores.length; i++) {
System.out.println(scores[i]);
}
}
}
Thanks.
Eric