Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions

Question

design a simple performance appraisal system

Answered: 1 week ago