Question: I need to change this code from reading the grades by the student (rows) to getting the average of the columns (grade 1's, so on).

I need to change this code from reading the grades by the student (rows) to getting the average of the columns (grade 1's, so on). the final scores that should be displayed are on the second picture

I need to change this code from reading the grades by thestudent (rows) to getting the average of the columns (grade 1's, so

EXAMPLE CALCULATE EACH STUDENT'S AVERAGE? We have 5 students and 10 homeworks public static void main(String[] args) { human String[] names = { "Scooby", "Shaggy", "Velma", "Fred", "Daphne" }; int[][] grades = new int[][] { 10, 9, 10, 9, 8, 6, 8, 5, 9, 10 }, K 8, 9, 16, 9, 8, 6, 8, 5, 9, 10 }, { 99, 9, 9, 8, 10, 10, 9, 9, 8 }, { 14, 5, 6, 5, 6, 9, 6, 7, 8, 8 }, 19, 10, 10, 10, 10, 10, 10, 10, 10, 10 } }; double[] averages = new double[names.length]; for (int studentIndex = 0; student Index

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!