Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

class Person def initself name surnameregNo ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems analysis and design in a changing world

Authors: John W. Satzinger, Robert B. Jackson, Stephen D. Burd

5th edition

9780324593778, 1423902289, 9781305117204, 324593775, 978-1423902287

More Books

Students also viewed these Programming questions

Question

What are the steps required to develop a system sequence diagram?

Answered: 1 week ago

Question

Describe the actions of the ML filter function.

Answered: 1 week ago