Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement the design of the CSE and EEE classes that are derived from the Department class so that the following output is produced: Driver Code

Implement the design of the CSE and EEE classes that are derived from the Department class so that the following output is produced:

Driver Code

class Department: def __init__(self, s): self.semester = s self.name = "Default" self.id = -1 def student_info(self): print("Name:", self.name) print("ID:", self.id) def courses(self, c1, c2, c3): print("No courses Approved yet!")

s1 = CSE("Rahim", 16101328,"Spring2016") s1.student_info() s1.courses("CSE110", "MAT110", "ENG101") print("==================") s2 = EEE("Tanzim", 18101326, "Spring2018") s2.student_info() s2.courses("Mat110", "PHY111", "ENG101") print("==================") s3 = CSE("Rudana", 18101326, "Fall2017") s3.student_info() s3.courses("CSE111", "PHY101", "MAT120") print("==================") s4 = EEE("Zainab", 19201623, "Summer2019") s4.student_info() s4.courses("EEE201", "PHY112", "MAT120")

Output

Name: Rahim ID: 16101328 Courses Approved to this CSE student in Spring2016 semester : CSE110 MAT110 ENG101 ================== Name: Tanzim ID: 18101326 Courses Approved to this EEE student in Spring2018 semester : Mat110 PHY111 ENG101 ================== Name: Rudana ID: 18101326 Courses Approved to this CSE student in Fall2017 semester : CSE111 PHY101 MAT120 ================== Name: Zainab ID: 19201623 Courses Approved to this EEE student in Summer2019 semester : EEE201 PHY112 MAT120

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

What are the purposes of collection messages? (Objective 5)

Answered: 1 week ago