Design the required class(es) to get the output shown from the driver code.  Your code should work for any number of arguments in addStudent method of  the SDS  class. N:B: The last part of output I couldn't include in the picture so here it is after the line of  CGpa= 3.01 As follows 7.================================ Name: Mohsina ID: 21305023 Department: MNS Courses: [] CGPA: 0 8.================================ 9.================================ Number of CSE students: 1 Number of MNS students: 3 CSE Students {21301001: ['Subha', 3.48, ['ENG091', 'MAT092']]} MNS Students {21101001: ['Maliha', 0, []], 21305001: ['Samiul', 3.01,  ['ENG091', 'MAT092', 'PHY111']], 21305023: ['Mohsina', 0, []]} 10.================================ BBS department student cannot be added to SDS 11.================================ Number of CSE students: 1 Number of MNS students: 3 CSE Students {21301001: ['Subha', 3.48, ['ENG091', 'MAT092']]} MNS Students {21101001: ['Maliha', 0, []], 21305001: ['Samiul', 3.01,  ['ENG091', 'MAT092', 'PHY111']], 21305023: ['Mohsina', 0, []]}

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

???????? 2:
Design the required class(es) to get the output shown from the driver code. 
Your code should work for any number of arguments in addStudent method of 
the SDS  class.

N:B: The last part of output I couldn't include in the picture so here it is after the line of 

CGpa= 3.01

As follows

7.================================

Name: Mohsina

ID: 21305023

Department: MNS

Courses: []

CGPA: 0

8.================================

9.================================

Number of CSE students: 1

Number of MNS students: 3

CSE Students {21301001: ['Subha', 3.48, ['ENG091', 'MAT092']]}

MNS Students {21101001: ['Maliha', 0, []], 21305001: ['Samiul', 3.01, 

['ENG091', 'MAT092', 'PHY111']], 21305023: ['Mohsina', 0, []]}

10.================================

BBS department student cannot be added to SDS

11.================================

Number of CSE students: 1

Number of MNS students: 3

CSE Students {21301001: ['Subha', 3.48, ['ENG091', 'MAT092']]}

MNS Students {21101001: ['Maliha', 0, []], 21305001: ['Samiul', 3.01, 

['ENG091', 'MAT092', 'PHY111']], 21305023: ['Mohsina', 0, []]}

 

 

 

Output:
School of Data and Sciences 2021! Only CSE and MNS
department students can
be added.
Number of CSE students: 0
Number of MNS students: 0
CSE Students {}
MNS Students {}
1.====
Name: Maliha
ID: 21101001
Department: MNS
Courses: |
CGPA: 0
2.
Number of CSE students: 0
Number of MNS students: 1
CSE Students {}
MNS Students {21101001: ['Maliha', 0, I]}
3.=:
====
Name: Subha
ID: 21301001
Department: CSE
Courses: ['ENG091', 'MAT092']
CGPA: 3.48
4.==
Number of CSE students: 1
Number of MNS students: 1
CSE Students {21301001: ['Subha', 3.48, ['ENG091',
"МАТО92]}
MNS Students {21101001: ['Maliha', 0, ]]}
5.===
6.
===:
Name: Samiul
ID: 21305001
Department: MNS
Courses: ['ENG091', 'MAT092', 'PHY111']
CGPA: 3.01
Transcribed Image Text:Output: School of Data and Sciences 2021! Only CSE and MNS department students can be added. Number of CSE students: 0 Number of MNS students: 0 CSE Students {} MNS Students {} 1.==== Name: Maliha ID: 21101001 Department: MNS Courses: | CGPA: 0 2. Number of CSE students: 0 Number of MNS students: 1 CSE Students {} MNS Students {21101001: ['Maliha', 0, I]} 3.=: ==== Name: Subha ID: 21301001 Department: CSE Courses: ['ENG091', 'MAT092'] CGPA: 3.48 4.== Number of CSE students: 1 Number of MNS students: 1 CSE Students {21301001: ['Subha', 3.48, ['ENG091', "МАТО92]} MNS Students {21101001: ['Maliha', 0, ]]} 5.=== 6. ===: Name: Samiul ID: 21305001 Department: MNS Courses: ['ENG091', 'MAT092', 'PHY111'] CGPA: 3.01
# Write you code here
sds21 = SDS("2021")
print("*********
sds21.print_info()
print("1.=:
s1 = Student("Maliha",21101001)
s1.print_info()
print("2.==
sds21.addStudent(s1)
sds21.print_info()
print("3.======
s2 = Student("Subha",21301001,"CSE",
["ENG091","MATO92"],3.48)
s2.print_info()
print("4.=
sds21.addStudent(s2)
sds21.print_info()
print("5.
s3 = Student("Samiul",21305001,"MNS",
["ENG091","MAT092","PHY111"],3.01)
s4 = Student("Mohsina",21305023)
print("6.=:
s3.print_info()
print("7.===
s4.print_info()
print("8.==
sds21.addStudent(s3,s4)
print("9.=
sds21.print_info()
print("10.==:
s5 = Student("Nayla", 16101288, "BBS")
sds21.addStudent(s5)
print("11.=
sds21.print_info()
*")
========")
==")
")
==")
=====")
===
%D
=======")
===
==")
===")
===========")
===D
=")
=")
Transcribed Image Text:# Write you code here sds21 = SDS("2021") print("********* sds21.print_info() print("1.=: s1 = Student("Maliha",21101001) s1.print_info() print("2.== sds21.addStudent(s1) sds21.print_info() print("3.====== s2 = Student("Subha",21301001,"CSE", ["ENG091","MATO92"],3.48) s2.print_info() print("4.= sds21.addStudent(s2) sds21.print_info() print("5. s3 = Student("Samiul",21305001,"MNS", ["ENG091","MAT092","PHY111"],3.01) s4 = Student("Mohsina",21305023) print("6.=: s3.print_info() print("7.=== s4.print_info() print("8.== sds21.addStudent(s3,s4) print("9.= sds21.print_info() print("10.==: s5 = Student("Nayla", 16101288, "BBS") sds21.addStudent(s5) print("11.= sds21.print_info() *") ========") ==") ") ==") =====") === %D =======") === ==") ===") ===========") ===D =") =")
Expert Solution
steps

Step by step

Solved in 2 steps with 5 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