Problem

(EnhancedGradeBook) Modify the GradeBook class of Fig. 19 so that the constructor accepts...

(EnhancedGradeBook) Modify the GradeBook class of Fig. 19 so that the constructor accepts as parameters the number of students and the number of exams, then builds an appropriately sized two-dimensional array, rather than receiving a preinitialized two-dimensional array as it does now. Set each element of the new two-dimensional array to -1 to indicate that no grade has been entered for that element. Add a setGrade method that sets one grade for a particular student on a particular exam. Modify class GradeBookTest of Fig. 20 to input the number of students and number of exams for the GradeBook and to allow the instructor to enter one grade at a time.

Fig. 19 GradeBook class using a two-dimensional array to store grades.

Fig. 20 GradeBookTest creates GradeBook object using a two-dimensional array of grades, then invokes method processGrades to analyze them

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 7
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT