Answered You can hire a professional tutor to get the answer.

QUESTION

A grade book has multiple rows and multiple columns.

When the application starts, it should prompt the user to enter the number of students and the number of assignments. After receiving those numbers, the application should prompt the user to enter grades.

After all grades are entered, the application should then display all the grades in the grade book. The grades of each student should be displayed in a single line. After all grades are displayed, the application should produce a report of the average grades of students. In addition, it should generate a report about the statistics of the assignments including the average score, the highest score, and the lowest score of each assignment.

Here is a sample run of three students, four assignments and 12 test case grades:

Assignment Requirements

The following specific requirements must be met:

The grade book should be implemented as a two-dimensional array

Create a sub-method to read the grades, store the grades in a two-dimensional array (grade book), and then return the grade book to the caller.

Create a sub-method to display all grades in the grade book passed into the method as a parameter

Create a sub-method to compute and display the average grades of the students in the grade book passed into the method as a parameter

Create a sub-method to calculate and report the statistics of all assignments in the grade book passed into the method as a parameter

The main method of the program must call those methods to read the grade book and produce those reports

If either the number of students or the number of assignments or both is not positive, you program should report the error and terminate the execution as shown in the example below:

Your program should pass the following test cases:

Negative assignments input

Negative students input

3 students, 4 assignments, grades matching the test case values above

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question