Class Gradebook1D Write an application that prints out the final grade of the students in a class and the average for the whole class. There are a total of 3 quizzes. You will need 4 arrays: 1. An array of type int to store all the ID's 2. An array of type double to store all scores for quiz 1 3. An array of type double to store all scores for quiz 2 4. An array of type double to store all scores for quiz 3 Example: Assume there are 10 students in the class, then the id array will have 10 indices. 8. 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. 6. 100.0 90.0 85.0 92.0 75.0 93.0 98.0 100.0 95.0 87.0 3. 6. 90.0 87.0 92.0 95.0 78.0 84.0 88.0 96.0 100.0 95.0 6. 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). How to proceed: 1. Ask the user how many students are in the class, so you can set the length of all the arrays. 2. Allocate 4 arrays that will store the data. 3. Use a FOR loop to retrieve and store all the data. 4. Use another FOR loop to a. Output the final score for each student. b. Keep track of all scores to later compute the average for the class. 5. Calculate and Output the average for the class. Format all floating-point numbers to 2 decimal places. Sample Output: How many students in the class? 4 Enter student ID: 111 Enter score for Quiz 1: 100 Enter score for Quiz 2: 95 Enter score for Quiz 3: 90 Enter student ID: 222 Enter score for Quiz 1: 90 Enter score for Quiz 2: 85 Enter score for Quiz 3: 80 Enter student ID: 333 Enter score for Quiz 1: 100 Enter score for Quiz 2: 100 Enter score for Quiz 3: 100 Enter student ID: 444 Enter score for Quiz 1: 90 Enter score for Quiz 2: 90 Enter score for Quiz 3: 90 ID 111 - Final grade : 95.00 ID 222 - Final grade: 85.00 ID 333 - Final grade : 100.00 ID 444 - Final grade: 90.00 Class average: 92.50 Your program MUST receive user input as shown in the sample output.

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 Gradebook1D
Write an application that prints out the final grade of the students in a class and the average for the whole
class. There are a total of 3 quizzes.
You will need 4 arrays:
1. An array of type int to store all the ID's
2. An array of type double to store all scores for quiz 1
3. An array of type double to store all scores for quiz 2
4. An array of type double to store all scores for quiz 3
Example: Assume there are 10 students in the class, then the id array will have 10 indices.
8.
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.
6.
100.0
90.0
85.0
92.0
75.0
93.0
98.0
100.0
95.0
87.0
3.
6.
90.0
87.0
92.0
95.0
78.0
84.0
88.0
96.0
100.0
95.0
6.
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).
How to proceed:
1. Ask the user how many students are in the class, so you can set the length of all the arrays.
2. Allocate 4 arrays that will store the data.
Transcribed Image Text:Class Gradebook1D Write an application that prints out the final grade of the students in a class and the average for the whole class. There are a total of 3 quizzes. You will need 4 arrays: 1. An array of type int to store all the ID's 2. An array of type double to store all scores for quiz 1 3. An array of type double to store all scores for quiz 2 4. An array of type double to store all scores for quiz 3 Example: Assume there are 10 students in the class, then the id array will have 10 indices. 8. 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. 6. 100.0 90.0 85.0 92.0 75.0 93.0 98.0 100.0 95.0 87.0 3. 6. 90.0 87.0 92.0 95.0 78.0 84.0 88.0 96.0 100.0 95.0 6. 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). How to proceed: 1. Ask the user how many students are in the class, so you can set the length of all the arrays. 2. Allocate 4 arrays that will store the data.
3. Use a FOR loop to retrieve and store all the data.
4. Use another FOR loop to
a. Output the final score for each student.
b. Keep track of all scores to later compute the average for the class.
5. Calculate and Output the average for the class.
Format all floating-point numbers to 2 decimal places.
Sample Output:
How many students in the class? 4
Enter student ID: 111
Enter score for Quiz 1: 100
Enter score for Quiz 2: 95
Enter score for Quiz 3: 90
Enter student ID: 222
Enter score for Quiz 1: 90
Enter score for Quiz 2: 85
Enter score for Quiz 3: 80
Enter student ID: 333
Enter score for Quiz 1: 100
Enter score for Quiz 2: 100
Enter score for Quiz 3: 100
Enter student ID: 444
Enter score for Quiz 1: 90
Enter score for Quiz 2: 90
Enter score for Quiz 3: 90
ID 111 - Final grade : 95.00
ID 222 - Final grade: 85.00
ID 333 - Final grade : 100.00
ID 444
- Final grade: 90.00
Class average: 92.50
Your program MUST receive user input as shown in the sample output.
Transcribed Image Text:3. Use a FOR loop to retrieve and store all the data. 4. Use another FOR loop to a. Output the final score for each student. b. Keep track of all scores to later compute the average for the class. 5. Calculate and Output the average for the class. Format all floating-point numbers to 2 decimal places. Sample Output: How many students in the class? 4 Enter student ID: 111 Enter score for Quiz 1: 100 Enter score for Quiz 2: 95 Enter score for Quiz 3: 90 Enter student ID: 222 Enter score for Quiz 1: 90 Enter score for Quiz 2: 85 Enter score for Quiz 3: 80 Enter student ID: 333 Enter score for Quiz 1: 100 Enter score for Quiz 2: 100 Enter score for Quiz 3: 100 Enter student ID: 444 Enter score for Quiz 1: 90 Enter score for Quiz 2: 90 Enter score for Quiz 3: 90 ID 111 - Final grade : 95.00 ID 222 - Final grade: 85.00 ID 333 - Final grade : 100.00 ID 444 - Final grade: 90.00 Class average: 92.50 Your program MUST receive user input as shown in the sample output.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Similar 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