Input of the problem - Information needed if the was admitted as an in-patient or an out-patient - Some of the formats used to calculate are char, if, while
Output of the problem - The outputs needed if the patient was admitted as an in-patient are the number of days spent in the hospital, the daily rate, hospital medication charges and charges for hospital services such as lab test. - The outputs needed if the patient was admitted as an out-patient are the charges for the hospital services such as lab test and hospital medication charges.
Process - Start with the whole process with functions and char - Enter the type of patient - Cout the number of days spent in the hospital, the daily rate, hospital medication charges and charges for hospital services.