Question: 2. Write a program that computes and displays the charges for a patient's hospital stay. First, the program should ask if the patient was admitted
2. Write a program that computes and displays the charges for a patient's hospital stay. First, the program should ask if the patient was admitted as an in patient out-patient if the patient was an in patient, the following information should be requested number of days spent in the hospital the daily rate hospital medication charges charges for hospital services (lab test, etc.) If the was an out patient, the following information should be requested: charges for hospital services (lab test, etc.) hospital medication charges The program should use two methods to calculate the total charges. One of the methods should accept arguments for the in-patient information, while method accepts argument for out-patient information. Both methods should return the total charges
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
