Question: solve in java Download the following java file and implement the functions. Then, test your implemented functions in the main method and print results to

solve in java  solve in java Download the following java file and implement the
functions. Then, test your implemented functions in the main method and print
results to the console. Note, do not change the structure (@param \&

Download the following java file and implement the functions. Then, test your implemented functions in the main method and print results to the console. Note, do not change the structure (@param \& return) of the functions or class. - Upload the complete source file (Main.java). Main.java package com. company; 2-Dimensional Arrays - Assignment *) public class Main f public static void main(String[] args) \{ int [][] studentGrades ={ L {95,100,70,50,30,60,80,100,98,34},/1 student 1 {67,89,100,97,87,89,56,78,100,90},// student 2 {89,100,29,49,89,58,23,96,100,94}, // student 3 {90,98,90,88,89,89,100,0,90,100},/1 student 4 {98,88,76,90,109,34,89,37,78,99},/1 student 5 3i /1. 1. test and show output of printstudentGrades I/ 2. test and show output of getClassAvg // 3. test and show output of getstudentAvg // 4. test and show output of getMingrade // 5. test and show output of getDiagona LAvg 3 /I display student grades (rowxcotumn) f* your output should be as follows: student 1:95,100,70,50,30,60,80,100,98,34 student 2: 67, 89, 100,97,87,89,56,78,100,90 student n... pubtic static void printstudentGrades(int [][] arr) \{ I/ YOUR INPLENENTATION GOES HERE 3 1% Aparam arr:int (20 array) - Ereturn avg:doubte (avg of the values of the 20 array) * f pubtic static double getclassavg(int[][] arr) \{ /I YOUR IMPLEMENTATTION GOES HERE return 0.9; y= Eparam arr (20 array of student grades) ; Eparam student 1 (student index, e,g.,2 will refer to the second row of the 2D array) * greturn avg:double (The average of a given student) public static double getstudentAvg(int[][] arr, int student_i) [ // YOUR IMPLENENTATION GOES HERE return 0,0 ; 3 Eparam arr (2-dimensional integer array) * Ereturn min:int * pubtic static int getMinGrade(int [][] arr) \{ I/ YOUR IMPLEMENTATION GOES HERE return ; 3 x * void function * prints the average of the diagonal line * Note, a matrix (20 array) must be square in order to have a diagonal line public static void getDiagonalAvg() \{ int sum =0; int arr[][]={ {10,9,8,7}, {9,8,11,31}, {90,81,8,8}, {12,13,15,8} 3; Il I/ YOUR IMPLEMENTATION GOES HERE 11 \} System.out.println("The sum of the diagonal line is: " + sum); \}

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!