Question: 1. (35 points) Write a program that computes a patient's bill for a hospital stay. The different components of the program are: a. The PatientAccount

 1. (35 points) Write a program that computes a patient's bill

1. (35 points) Write a program that computes a patient's bill for a hospital stay. The different components of the program are: a. The PatientAccount class b. The Surgery class c. The Pharmacy class d. The main program The PatientAccount class keeps a total of the patient's charges in variable TotalCharges. It will also keep track of the number of days spent in the hospital. ($500 per day) The Surgery class will have stored within it the charges for at least five types of surgery (S1:$100, S2:$200, S3:$300, S4:$400, S5:$500). It can update the TotalCharges variable of the PatientAccount class. The Pharmacy class will have stored within it the price of at least five types of medication (M1:$10, M2:$20, M3:$30, M4:$40, M5:$50). It can update the TotalCharges variable of the PatientAccount class. The main program has a menu that allows the user to enter a type of surgery, a type of medication, number of days of hospital stay, and check the patient out of the hospital. When the patient checks out, the total charges should be displayed

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!