Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can someone please help with this programming problem? Im lost. 12. In this exer

ID: 3639291 • Letter: C

Question

Can someone please help with this programming problem? Im lost.

12. In this exercise you will design various classes and write a program to computerize the billing system of a hospital.
A. Design the class doctorType, inherited from the class personType, with an additional data member to store doctors speciality. Add appropriate constructors and member functions to initialize, access, and manipulate the data members.
B. design the class billtype with data members to store patients Id and patients hospital charges. Add appropriate constructors and member functions to initialize, access and manipulate the data members.
C. 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, and the date the patient was discharged from the hospital. Use the class date type to store the date of birth, admit date, discharge date, and class doctorType, to store attending physicians name. Add appropriate constructors and member functions to initialize, access and manipulate the data members.
Write a program to test your classes.


I know this is a lot but I am very lost on it. It is number 12 PE ch 13 from the text c++ programming : from problem analysis to program design 5 th edition by ds Malik.

Thanks a bunch.

Explanation / Answer

public class BillingSystem { private int id; private double pharmacyCharges; private double doctorsFee; private double roomCharges; public BillingSystem(int id) { this.id = id; this.pharmacyCharges = 0.0; this.doctorsFee = 0.0; this.roomCharges = 0.0; } public BillingSystem(int id, double pharmacyCharges, double doctorsFee, double roomCharges) { this.id = id; this.pharmacyCharges = pharmacyCharges; this.doctorsFee = doctorsFee; this.roomCharges = roomCharges; } public int getId() { return id; } public void setId(int id) { this.id = id; } public double getPharmacyCharges() { return pharmacyCharges; } public void setPharmacyCharges(double pharmacyCharges) { this.pharmacyCharges = pharmacyCharges; } public double getDoctorsFee() { return doctorsFee; } public void setDoctorsFee(double doctorsFee) { this.doctorsFee = doctorsFee; } public double getRoomCharges() { return roomCharges; } public void setRoomCharges(double roomCharges) { this.roomCharges = roomCharges; } }