Question: In this test, you will design various classes and write a program to computerize the billing system of a hospital. 1 . ( 1 0
In this test, you will design various classes and write a program to computerize the billing system of a hospital.
Pts Design the personType with data members firstName & lastName with the following member functions:
Set firstName and lastName
Get firstName and lastName
Print to display first and last name
Default and overloaded constructors
Pts Design the class doctorType, inherited from the class personType, with an additional data member to store a doctors speciality. Add appropriate constructors and member functions to initialize, access, and manipulate the data members.
Pts Design the class billType with data members to store a patients ID and a patients hospital charges, such as pharmacy charges for medicine, doctors fee, and room charges. Add appropriate constructors and member functions to initialize, access, and manipulate the data members.
Pts Design the class dateType with data members day, month, and year with the following member functions:
Set day, month, and year
Get day, month, and year
Print to display a date
Default and overloaded constructors
Pts Design the class patientType, inherited from the class personType, with additional data members to store a patients ID age, date of birth, attending physicians name, the date when the patient was admitted in the hospital, and the date when the patient was discharged from the hospital. Use the class dateType to store the date of birth, admit date, discharge date, and the class doctorType to store the attending physicians name. Add appropriate constructors and member functions to initialize, access, and manipulate the data members.
Pts Write the following overloaded operators:
and operators to output and input information of a patient
and operator to compare two patientType objects to find less or more billing amount.
In C
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
