Question: C++ program Write a program that computes a patient's bill for a hospital stay. This includes designing several classes: HospitalCharges, Surgery, Medication, PatientAccount, and Date

C++ program

C++ program Write a program that computes a patient's bill for ahospital stay. This includes designing several classes: HospitalCharges, Surgery, Medication, PatientAccount, andDate class. Al class attributes must be private and accessed through publicmember functions The attributes of each class are summarized below: HospitalCharges classhas the following private attributes vector surgeries; vector medications; vector patientsAccounts. Surgeryclass has the following private attributes: int surgeryCode; string surgeryDescription; double surgeryCharge;

Write a program that computes a patient's bill for a hospital stay. This includes designing several classes: HospitalCharges, Surgery, Medication, PatientAccount, and Date class. Al class attributes must be private and accessed through public member functions The attributes of each class are summarized below: HospitalCharges class has the following private attributes vector surgeries; vector medications; vector patientsAccounts. Surgery class has the following private attributes: int surgeryCode; string surgeryDescription; double surgeryCharge; Medication class has the following private attributes int medicationCode; string medicationDescription; double medicationCharge; PatientAccount class has at least the following private attributes: const long patientAccountNum; //-nextPatientAccountNum string firstName; string lastName; long SSN; char gender; int age double dailyRate; Date admittDate; Date dischargeDate; vector patientSurgeries; vector patientMedications; static long nextPatientAccountNum; // initialize it to 1000 and increment it by 1 // as vou create a new obiect Date class has the following private attributes int month int day; int year

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!