Question: Write a program that computes a patient's bill for a hospital stay. the different components of the program are: The Patient Account class the Surgery
Write a program that computes a patient's bill for a hospital stay. the different components of the program are: The Patient Account class the Surgery class the Pharmacy class the main program the Patient Account class will keep a total of the patient's charges. 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 (Sl:$100. S2.S200, S3:$300, S4:$400, S5:$500). It can update the charges variable of the Patient Account class. the Pharmacy class will have stored within it the price of at least five types of medication (Ml: $10, M2: $20, M3: $30, M4: $40, M5: $50). It can update the charges variable of the Patient Account 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
Get step-by-step solutions from verified subject matter experts
