Description
Alldetails attached. Write a class called Hospital that accepts the following indicators:
- A five digit string value representing the patient identification number
- The patient’s name (First name and last name)
- An integer representing the number of days the patient is in the hospital.
- A single character representing the type of room the patient chooses. Room type (P/p= private, S/s means semi-private, and W/w means ward)
As part of the billing, note the following:
- If a patient chooses private room, the cost for medication is twice what it is shown on the billing chart; if the patient chooses semi-private, then the cost for medication is what is shown on the billing chart; and if the patient chooses ward, then the medication cost is half what is shown on the billing chart.
- A patient who chooses private room pays for television service and telephone service; a patient who chooses semi-private room pays for television service, and a patient who chooses the ward gets television and telephone services free. These are flat fees (one time fees).
Unformatted Attachment Preview
Purchase answer to see full attachment