Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Java codes image text in transcribed
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

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_2

Step: 3

blur-text-image_3

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

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions