Class Gradebook2D 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. Example: Assume there are 10 students in the class, then the id array will have 10 indices. 0 1 2 3 4 5 6 7 8 9 132 451 854 523 153 588 351 856 142 445 Each quiz array will store in the index that corresponds to the student the score for the quiz. 0 1 2 3 4 5 6 7 8 9 100.0 90.0 85.0 92.0 75.0 93.0 98.0 100.0 95.0 87.0 90.0 87.0 92.0 95.0 78.0 84.0 88.0 96.0 100.0 95.0 100.0 98.0 85.0 98.0 87.0 89.0 92.0 88.0 92.0 97.0 Student with ID 153, at index 4, has taken all three quizzes with scores 75.0 (quiz 1), 78.0 (quiz 2) and 87.0 (quiz 3). Note: The two dimensional array can be represented also with the rows being the students and the columns being the quizzes. How to proceed: 1. Declare the number of quizzes as a constant, outside the main method. (Recall that identifiers for constants are all in CAPITAL_LETTERS.) 2. Ask the user how many students are in the class, so you can set the length of all the arrays. 3. Allocate 2 arrays, one one‐dimensional and the other two‐dimensional, that will store the data. 4. Use two nested FOR loops to retrieve and store all the data. 5. 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. 6. Calculate and Output the average for the class. Format all floating‐point numbers to 2 decimal places.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Class Gradebook2D 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. Example: Assume there are 10 students in the class, then the id array will have 10 indices. 0 1 2 3 4 5 6 7 8 9 132 451 854 523 153 588 351 856 142 445 Each quiz array will store in the index that corresponds to the student the score for the quiz. 0 1 2 3 4 5 6 7 8 9 100.0 90.0 85.0 92.0 75.0 93.0 98.0 100.0 95.0 87.0 90.0 87.0 92.0 95.0 78.0 84.0 88.0 96.0 100.0 95.0 100.0 98.0 85.0 98.0 87.0 89.0 92.0 88.0 92.0 97.0 Student with ID 153, at index 4, has taken all three quizzes with scores 75.0 (quiz 1), 78.0 (quiz 2) and 87.0 (quiz 3). Note: The two dimensional array can be represented also with the rows being the students and the columns being the quizzes. How to proceed: 1. Declare the number of quizzes as a constant, outside the main method. (Recall that identifiers for constants are all in CAPITAL_LETTERS.) 2. Ask the user how many students are in the class, so you can set the length of all the arrays. 3. Allocate 2 arrays, one one‐dimensional and the other two‐dimensional, that will store the data. 4. Use two nested FOR loops to retrieve and store all the data. 5. 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. 6. Calculate and Output the average for the class. Format all floating‐point numbers to 2 decimal places.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Program on Numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education