Question: Implement a 3-dimensional array to store grades. Each row will represent the grades of each of 4 (4, not 3, not 5) students and there

Implement a 3-dimensional array to store grades. Each row will represent the grades of each of 4 (4, not 3, not 5) students and there will be 3 grades for each student (one for IST 110, 210, and 220 each), one for each of 2 tests; each class grade is wholly determined by the two tests weighted equally (hence a 4x3x2 array of doubles). Write a driver that initializes the array (see p. 169 in the text). Then determine (to 2 digits after the decimal point): 1) each students class average in each class (where each test is ranked equally), 2) each tests average, 3) the class average for each class, 4) each students ETM average (ranking 110 at .25, and each of 210 and 220 at .375), and 5) the average ETM grade for all students. Do NOT prompt the user for this data; initialize the array in the main routine. Only one .java file is to be submitted.

Implement a 3-dimensional array to store grades. Each row will represent the

Here is the started program:

import java.util.Scanner;

public class Grades { public static void main(String[] args) { int[][][] array={{{90,85},{74,86},{96,92}}, {{75,82},{88,91},{86,94}}, {{86,92},{84,82},{88,74}},{{83,90},{92,88},{87,91}}}; double sum = 0; double avg = 0; int i, j, k=0; System.out.println("Data \t\t 110(.25) \t\t 210(.375) \t\t 220(.375)"); System.out.println("\t \t \t T1 \t T2 \t \t \t T1 \t T2 \t \t \t T1 \t T2"); for(i=0; i

Data 220 (-375) 110 (-25) T1 T2 90 85 82 92 90 90 210 (-375) T3 T2 74 88 91 84 82 92 88 96 86 88 74 91 Test Average 83.50 87.25 84.50 86.75 89.25 87.75 Student Avgs S1 110 87.50 78.50 89.00 86.50 210 80.00 89.50 83.00 90.00 220 ETM Average 94.00 87.13 90.00 86.94 81.00 83.75 89.00 88.75 S3 Class Average 85.38 85.63 88.50 86.64

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!