uestion: 3 Implement the design of the Student_Tutor class that inherit from Student  class so that the following code generates the output below: Hint: Each room has a capacity of 2 Student tutors. class Student:      def __init__(self,name,student_id):          self.name = name          self.student_id = student_id          self.semester = "Spring 2022"      def details(self):          print("Name:",self.name)          print("Student_ID:",self.student_id)          print("Current Semester:",self.semester) # Write your code here: STs = [] S1 = Student("Reem", 18101235) S1.details() print("1.======================================") ST1 = Student_Tutor("Moynul", 16107892, 35, "CSE110", "CSE111") ST2 = Student_Tutor("Priyo", 16107792, 25,"CSE320") ST3 = Student_Tutor("Ronok", 18207892,  36, "CSE110", "CSE111", "CSE221", "CSE220") ST4 = Student_Tutor("Zeba", 19307892, 48, "CSE110") STs.extend([ST1, ST2, ST3, ST4]) print("2.======================================") for i in range(len(STs)):      STs[i].details()      print(f"{i+3}.==========================

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Question: 3
Implement the design of the Student_Tutor class that inherit from Student 
class so that the following code generates the output below:

Hint: Each room has a capacity of 2 Student tutors.

class Student:
     def __init__(self,name,student_id):
         self.name = name
         self.student_id = student_id
         self.semester = "Spring 2022"


     def details(self):
         print("Name:",self.name)
         print("Student_ID:",self.student_id)
         print("Current Semester:",self.semester)


# Write your code here:
STs = []
S1 = Student("Reem", 18101235)
S1.details()
print("1.======================================")
ST1 = Student_Tutor("Moynul", 16107892, 35, "CSE110", "CSE111")
ST2 = Student_Tutor("Priyo", 16107792, 25,"CSE320")
ST3 = Student_Tutor("Ronok", 18207892, 
36, "CSE110", "CSE111", "CSE221", "CSE220")
ST4 = Student_Tutor("Zeba", 19307892, 48, "CSE110")
STs.extend([ST1, ST2, ST3, ST4])
print("2.======================================")
for i in range(len(STs)):
     STs[i].details()
     print(f"{i+3}.======================================")
print("Number of Student Tutors:",Student_Tutor.student_tutors)

Question: 3
Implement the design of the Student_Tutor class that inherit from Student
class so that the following code generates the output below:
40
Hint: Each room has a capacity of 2 Student tutors.
class Student:
def_init_(self,name,student_id):
self.name = name
%3D
self.student_id = student_id
self.semester = "Spring 2022"
%3D
def details(self):
print("Name:",self.name)
print("Student_ID:",self.student_id)
print("Current Semester:",self.semester)
# Write your code here:
STs = 0
S1 = Student("Reem", 18101235)
%3D
%3D
S1.details()
print("1.=
ST1 = Student_Tutor("Moynul", 16107892, 35, "CSE110", "CSE111")
ST2 = Student_Tutor("Priyo", 16107792, 25,"CSE320")
ST3 = Student_Tutor("Ronok", 18207892,
36, "CSE110", "CSE111", "CSE221", "CSE220")
ST4 = Student_Tutor("Zeba", 19307892, 48 CRE10
===")
%3D
%3D
%3D
Transcribed Image Text:Question: 3 Implement the design of the Student_Tutor class that inherit from Student class so that the following code generates the output below: 40 Hint: Each room has a capacity of 2 Student tutors. class Student: def_init_(self,name,student_id): self.name = name %3D self.student_id = student_id self.semester = "Spring 2022" %3D def details(self): print("Name:",self.name) print("Student_ID:",self.student_id) print("Current Semester:",self.semester) # Write your code here: STs = 0 S1 = Student("Reem", 18101235) %3D %3D S1.details() print("1.= ST1 = Student_Tutor("Moynul", 16107892, 35, "CSE110", "CSE111") ST2 = Student_Tutor("Priyo", 16107792, 25,"CSE320") ST3 = Student_Tutor("Ronok", 18207892, 36, "CSE110", "CSE111", "CSE221", "CSE220") ST4 = Student_Tutor("Zeba", 19307892, 48 CRE10 ===") %3D %3D %3D
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY