Java 2D array grade program.?

A teacher wants to keep a gradebook for one term’s marks for a single Computer Science class.

You will be using a 2D array to facilitate this. The 2D array will be constructed in the following way:

The row’s will store individual students marks. The first row will store the maximum score for each test that you may be able to reference when labelling or looking for specific stats for each test.

Each column will have the scores for each test for every student.

Initially you will be storing 10 students’ scores for 4 tests.

At this stage in the construction of this program, we are more concerned with the construction of the 2D array rather than the entry of the individual marks for each student. We can assume that you will be able to allow the user to enter the marks into the array, but to get the data into the array you can randomly generate values for each of the 10 students’ 4 test scores.

You do, however, want to calculate the average for each test as well as the student average mark for the term. You also want the user to enter the name of the subject that they are storing marks for

The output will need to be in the following format:

Grades for Computer Science 202:

Test 1: /20 Test 2: /30 Test 3: /20 Test 4: /30 Student Average:

Student1: 15 20 20 20 %

Student2: 15 20 20 20 %

Student3: 15 20 20 20 %

Student4: 15 20 20 20 %

Student5: 15 20 20 20 %

Student6: 15 20 20 20 %

Student7: 15 20 20 20 %

Student8: 15 20 20 20 %

Student9: 15 20 20 20 %

Student10: 15 20 20 20 %

Average for each test:

15% 20% 20% 20%

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 QUIZLS.COM - All rights reserved.