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, []]}
???????? 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, []]}
Step by step
Solved in 2 steps with 5 images