Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create code to generate 1 0 students, and 3 exams per student. in c program I need Bill Rod Jake Say Will Rey Joe Jim
Create code to generate students, and exams per student. in c program
I need
Bill Rod
Jake Say
Will Rey
Joe Jim
Dave Kay
Adam Russ
Mac Joy
Dash Bill
Ford Most
Eqe Benz
for name and last name
BR
JS
WR
JJ
DK
AR
MJ
DB
FM
EB
for student ID
and give them exam number and score
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 or
Student Id
Score that the student received
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 :
Student :
Student :
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started