Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Question Description

Write a Python code.

Implementing Python Inheritance, a 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 the 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 an 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 increase.
  • Create a child class named “faculty” derived from parent class “person”. It will have the 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.48 Rating (155 Votes )

There are 3 Steps involved in it

Step: 1

The detailed answer for the above question is provided below Your Answer class Person def initself name surnameregNo selfname name selfsurname surname ... 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

Auditing and Assurance Services Understanding the Integrated Audit

Authors: Karen L. Hooks

1st edition

471726346, 978-0471726340

More Books

Students also viewed these Programming questions

Question

List twelve quality criteria for good design.

Answered: 1 week ago

Question

What are important detective controls for cash disbursements?

Answered: 1 week ago