Write a program that computes a patient’s bill for a hospital stay. The different
components of the program are
• The PatientAccount class will keep a total of the patient’s charges. It will also keep
track of the number of days spent in the hospital. The group must decide on the
hospital’s daily rate.
• The Surgery class will have stored within it the charges for at least five types of
surgery. It can update the charges variable of the PatientAccount class.
• The Pharmacy class will have stored within it the price of at least five types of
medication. It can update the charges variable of the PatientAccount class.
• The main program.
The student who designs the main program will design a menu that allows the user to enter
a type of surgery, enter one or more types of medication, and check the patient out of the
hospital. When the patient checks out, the total charges should be displayed.
1
Expert's answer
2012-11-05T10:54:00-0500
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Comments
Leave a comment