Question
paython code: A hospital is a very busy place with a lot of patients and also a lot of employees to keep the system running
paython code:
A hospital is a very busy place with a lot of patients and also a lot of employees to keep the system running perfectly. All people in the hospital have basic information like title, name, gender, address, and phone number. Employees of the hospital have extra information like employee-id and salary. For every 25 employees, there is a manager who is also an employee, but gets an allowance of 7% more than the salary. There are also doctors and nurses who are employees in the hospital. Doctors and nurses are assigned to a specific department, like dental, pediatric, cardiac, and so on. Then, there are two types of patients in the hospital, the In-Patients and the Out-Patients, while both have all the basic information, the In-Patients have a room number where they are admitted. You are required to draw the UML Class diagram and create Python classes to represent the different types of people in a hospital. 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 differentpeople in the hospital and displaying their informationInclude also a Test class, to test the functionalities of the implemented classes.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started