Create an application that calculates the total cost of a hospital stay. The daily base charge is $350. The hospital charges for medication, surgical fees, lab fees, and physical rehab. The applications should accept the following input:
The number of days spent in the hospital
The amount of medication charges. Type 50.00 in the box when you run the program
The amount of surgical charges. Type 100.00 in the box when you run the program
The amount of lab fees. Type 50.00 in the box when you run the program
The amount of physical rehabilitation charges. Type 200 in the box when you run the program
You must create the following methods and call them:
CalcStayCharges = Calculates and returns the base charges for the hospital stay. This is computed by multiplying 350 by the number of days in the hospital
CalcMiscCharges – Calculates and returns the total of the medication, surgical, lab, and physical rehabilitation charges.
CalcTotalCharges – Calculates and returns the total charges by adding the stay charges and misc. charges.
Write appropriate exception handling code that prevents the user from entering bad input.