Answered step by step
Verified Expert Solution
Link Copied!

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 10 students, and 3 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
BR001
JS002
WR003
JJ004
DK005
AR006
MJ007
DB008
FM009
EB010
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 (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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions

Question

Guidelines for Informative Speeches?

Answered: 1 week ago

Question

When is it appropriate to use a root cause analysis

Answered: 1 week ago