Question: Create code to generate 1 0 students, and 3 exams per student. You will create a Student class, and an Exam class. The Student class

Create code to generate 10 students, and 3 exams per student.
You will create a Student class, and an Exam class. The Student class should have the following properties:
First Name
Last Name
ID (Must be unique)
The Exam class will have the following properties:
Exam Number (1,2, or 3)
Student Id
Score that the student received (0-100)
Store the exams in a dictionary related to each student. Loop through each of the students and calculate their average score on the
exams.
HINT:
You will use lists to store students, and dictionaries to store the exams. You will want to use the Student ID as the
key for the dictionary, and a list of exams to store the exams.
Your output should look like the output below:
Student 1: 83.33
Student 2: 92.66
Student 10: 72.00
 Create code to generate 10 students, and 3 exams per student.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!