Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q5 There are four parts to this question. You will need to use the Patient class and the Ward class that are defined in the
Q5 There are four parts to this question. You will need to use the Patient class and the Ward class that are defined in the template. Q5a Write a class that fulfils the following specifications. Class name Bclassward There is no parameter for this class constructor. Parameter(s) argument(s) for the constructor _init_ Detailed description This class inherits the Ward class given in the template. Class attributes Override the class attributes as followed: The maximum occupancy of a B class ward is 6. Its daily rate is 100 dollars instead of 35 dollars. Example usage ward = BClassward() print(Bclassward. MAXIMUM_OCCUPANCY) print(Bclassward.DAILY_RATE) ward.check_in("Jane Doe") ward. increment_length_of_stay() ward.check_in("John Doe") ward. increment_length_of_stay for patient in ward.patients: print (patient.name) print(ward.get_patient_cost(patient.name)) Example usage 6 output Jane Doe 100 200 John Doe 100
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