Question
Implement the Python Inheritance, the core object-oriented programming concept. You are here required to develop a University Management System (UMS) to handle day to day
Implement the Python Inheritance, the core object-oriented programming concept. You are here required to develop a University Management System (UMS) to handle day to day activities of Students, Faculty and Finance Department.
(1)Create a parent class named “person” with following attributes: Name, Surname and Registration_Number.
(2)Create a child class named “student” derived from parent class “person”. It will have same attributes as parent class: Name, Surname and Registration_Number.
- In addition, it will have a Boolean attribute “student_type”. It can be undergraduate or postgraduate.
- In addition, it will have a list attribute “current_courses”. Initially, keep it empty.
- Create a method named “Add_Course()” to append the courses he/she is taking.
- In addition, it will have attribute named “Fees”. Initially, keep it empty.
- Create a method named “Fees_Calculator() to calculate the current fees of the student member. Each undergraduate student pays 500 per course, while the postgraduate student pay 750 per course. So as the list of courses keeps on increasing the net fees also increases.
- (3)Create a child class named “faculty” derived from parent class “person”. It will have same attributes as parent class: Name, Surname and Registration_Number.
- In addition, it will have a list attribute “courses_taught”. Initially, keep it empty.
- Create a method named “Add_Teach_Load()” to append the courses in the list (courses_taught).
- In addition, each faculty member will have attribute “Pay”. Initially, keep it empty.
- Create a method named “Pay_Calculator() to calculate the current salary of the faculty member. Each faculty member is paid 400$ per course, so as the list of courses keeps on increasing the net salary also increases.
- (4)Create a child class named “UMS” derived from parent classes “student & faculty”. It will be only used to calculate the net financial impact of the university. It will read total number of students and faculty along with their fees and pays and calculate the net profit the university is generating.
Step by Step Solution
3.50 Rating (143 Votes )
There are 3 Steps involved in it
Step: 1
class Student Constructor def initself name rollno m1 m2 selfname name selfrollno rollno selfm1 m1 s...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Document Format ( 2 attachments)
60b9222d1af55_208364.pdf
180 KBs PDF File
60b9222d1af55_208364.docx
120 KBs Word File
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started