public void Extra(){
// Class Averages
int[] classScores = {75,83,87,91};
System.out.print(arraySum(classScores));
System.out.println("/400 is the class average");
//Student Scores
int[][] student = {
{90,85,92,78},
{88,91,89,95},
{91,95,89,98},
{72,75,83,85},
{37,61,73,54}
};
String[] studentNames = {"Jerry","Bobby","John","Ted","Amanda"};
int[] studentScores = rowSums(student);
int max = 0;
int highestScorer = 0;
System.out.println("The scores each person got are: ");
for (int i = 0; i<studentScores.length;i++){
System.out.println(studentNames[i] + ": "+ Integer.toString(studentScores[i]) + " ");
if (studentScores[i]/(student[0].length) > max){
max = studentScores[i]/(student[0].length);
highestScorer = i;
}
}
boolean diverse = isDiverse(student);
if (diverse){
System.out.println("All of the scores are different from each other");
} else{
System.out.println("At least two scores are the same");
}
System.out.println("The highest scorer is " + studentNames[highestScorer] + " with an average of " + Integer.toString(max));
}