Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 IndexStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started