Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement the design of the StudentDatabase class so that the following output is produced: GPA = Sum of (Grade Points * Credits)/ Credits attempted Driver

Implement the design of the StudentDatabase class so that the following output is produced:

GPA = Sum of (Grade Points * Credits)/ Credits attempted

Driver Code

Output

# Write your code here

# Do not change the following lines of code.

s1 = StudentDatabase('Pietro', '10101222')

s1.calculateGPA(['CSE230: 4.0', 'CSE220: 4.0', 'MAT110: 4.0'], 'Summer2020')

s1.calculateGPA(['CSE250: 3.7', 'CSE330: 4.0'], 'Summer2021')

print(f'Grades for {s1.name} {s1.grades}')

print('------------------------------------------------------')

s1.printDetails()

s2 = StudentDatabase('Wanda', '10103332')

s2.calculateGPA(['CSE111: 3.7', 'CSE260: 3.7', 'ENG101: 4.0'], 'Summer2022')

print('------------------------------------------------------')

print(f'Grades for {s2.name} {s2.grades}')

print('------------------------------------------------------')

s2.printDetails()

Grades for Pietro

{'Summer2020': {('CSE230', 'CSE220', 'MAT110'): 4.0}, 'Summer2021': {('CSE250', 'CSE330'): 3.85}}

-----------------------------------------------

Name: Pietro

ID: 10101222

Courses taken in Summer2020 :

CSE230

CSE220

MAT110

GPA: 4.0

Courses taken in Summer2021:

CSE250

CSE330

GPA: 3.85

-----------------------------------------------

Grades for Wanda

{'Summer2022': {('CSE111', 'CSE260', 'ENG101'): 3.8}}

-----------------------------------------------

Name: Wanda

ID: 10103332

Courses taken in Summer2022:

CSE111

CSE260

ENG101

GPA: 3.8

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

More Books

Students also viewed these Databases questions

Question

U11 Informing Industry: Publicizing Contract Actions 317

Answered: 1 week ago