Question: C++ Code Exercise B: Gradebook 2D It will produce the same output as Gradebook 1D , but the implementation will be slightly different. You will
C++ Code
Exercise B: Gradebook2D
It will produce the same output as Gradebook1D, but the implementation will be slightly different.
You will need to use only two arrays:
1. One array of type int to store all the ID's (just like the previous class).
2. One two-dimensional array of type double to store all the scores for all quizzes.
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 (3), 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 the all arrays.(you can declare a constant number for the number of students)
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 toCalculate and Output the average for the class.
a. Output the final score for each student.
b. Keep track of all scores to later compute the average for the class.
6. 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
