Question: Java codes The class Gradebook2D will produce the same output of the class Gradebook1D, but the implementation will be slightly different. You will need to
The class Gradebook2D will produce the same output of the class Gradebook1D, but the implementation will be slightly different. You will need to use only two arrays: One array of type int to store all the ID's (just like the previous class). One two-dimensional array of type double to store all the scores for all quizzes. How to proceed: Declare the number of quizzes as a constant, outside the main method. (Recall that identifiers for constants are all in CAPITAL_LETTERS.) Ask the user how many students are in the class, so you can set the length of the all arrays. Allocate 2 arrays, one one-dimensional and the other two-dimensional, that will store the data. Use two nested FOR loops to retrieve and store all the data. Use another two nested FOR loops to a. Output the final score for each student. b. Keep track of all scores to later compute the average for the class. Calculate and output the average for the class. Format all floating-point numbers to 2 decimal places
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
