Studentscore - F: Question Text: Title: Student Management
Studentscore - F: Question Text: Title: Student Management
Where , studentId represents student id, studentName represents student name, courseEnrolled
represents the name of the course enrolled for and studentScore represents the score for the
student.
Define the __init__ method to initialize the attributes in the above sequence.
Where , the departmentName represents the name of the department and studentList represents
the list of Students.
Define the __init__ method to initialize the attribuutes in the above sequence.
Define two methods – findCourseWiseStudents and findStudentGrade in Department class.
findCourseWiseStudents:
This method will find the count of students enrolled for each course from the studentList of the
Department class and returns a dictionary having the courseEnrolled and studentCount (count of
students) as key:value pair.
findStudentGrade:
This method will take a studentId as parameter and return the grade of the Student with the
given studentId passed as argument from the studentList in the Department class.
The grade is calculated based on the studentScore as below:
If no student with given student id found in the studentList , the method should return None.
These methods should be called from the main section.