Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions