Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

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

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions

Question

6. What data will she need?

Answered: 1 week ago

Question

1. How did you go about making your selection?

Answered: 1 week ago