Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A university is a very busy place with a lot of students and also a lot of employees to keep the system running perfectly. All

  1. A university is a very busy place with a lot of students and also a lot of employees to keep the system running perfectly. All people in the university have basic information like name, address, email and phone number. Employees at the university have extra information like employee-id and salary. There are also faculty and staff who are employees at the university. Each faculty has a designation and is assigned to a specific college and has number of courses taught. Each staff belongs to a specific department such as IT, HR etc. and has a designation at the department. Then, there are students who have the information such as Courses taken, GPA etc.

You are required to draw the UML Class diagram and create Python classes to represent the different types of people at a university. Identify the classes and the relationships between them. Implement the classes in Python. Create a separate test module where instances of the class are created, and the methods are tested by creating a list of different people at the university and displaying their information.

  • Complete for faculty /staff / student in the same format please
  • please add Test.py / include for all classes university , people , employee , faculty , staff ,student
  • follow the UML DIAGRAM TO DO THE SELF. PART FOR all faculty and staff and studentimage text in transcribedimage text in transcribed
new University -uni_name:string -uni_address:string -uni_phone:string -website:string +displayUnio People #name:string #address:string #email:string #phone:string +displayPeople Employee #emp_id:string #salary:string #designation:string +displayEmployee() Student -student_id:string -courses taken:string -gpa:float +displayStudento Faculty -college:string -no_of_courses:int +displayFaculty Staff -department:string +displaystaff class University: "" "class to represent University People def init (self, newuni, uniadd, newwebsite, uninumber): self.uni_name =newuni self.uni_address- uniadd self.website= newwebsite self.uni_phone uninumber def displayUni (self): print ("University Name:"4" "+self.uni_name+" "+"University Address:"+""self.uni address+" " + "University Website: "+""+self.website+" "+"Univesity Teleophone:"4" ") +self.uni_phone+" " class People: " "class to represent people""" def _init__(self, newname, newaddress, newemail, newphone): self. name= newname self. address = newaddress self._email =newemail self._phone -newphone def display People (self): print("Name:"+""+self._name+" "+"Address:"+""+self._address+ "Email":""+self._email+" " "phone"" "self._phone) _init class Employee (People): def (self, newname, newaddress, newemail, newphone, newempid, newsalary, newdesi gnation) : People. __init__(self, newname, newaddress, newemail,newphone) self._emp_id = newempid self._salary =newsalary self._designation = newdesignation def displayEmployee (self): self.displayPeople() print ("Employee id: "+""+self._emp_id+" "+ "Employee salary:"" "+self._salary+" "+"Employee Designation:"+""+self._designation)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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_2

Step: 3

blur-text-image_3

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

1. List the basic factors determining pay rates.pg 87

Answered: 1 week ago