See More

package chapter4; import java.util.Scanner; /* * NESTED LOOPS: * Find the average of each student's test scores */ public class AverageTestScores { public static void main(String args[]){ //Initialize what we know int numberOfStudents = 24; int numberOfTests = 4; Scanner scanner = new Scanner(System.in); //Process all students for(int i=0; i< numberOfStudents; i++){ double total = 0; for(int j=0; j