Question: Write a Python code. implementing the Python Inheritance, the core object-oriented programming concept. You are here required to develop a University Management System (UMS) to

Write a Python code.

implementing 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.

  • Create a parent class named “person” with following attributes: Name, Surname and Registration_Number.
  • 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.
  • 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.
  • 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.37 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

class Person def initself name surnameregNo ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!