Search for question
Question

Create the following functions: Calculates and returns the base charges for the hospitalstay. This is computed as $350 times the number of daysin the hospital.CalcstayCharges Calculates and returns the total

of the medication,surgical, lab, and physical rehabilitation charges.Calc Misc Charges CalcTotalCharges Calculates and returns the total charges. ValidateInputFields Checks the validity of the input fields by converting each to a numeric value and checking its range. If any input field is found to be invalid, this function displays an error message and returns a value of False. Input Validation: Do not accept a negative value for length of stay, medication charges, surgical charges, lab fees, or physical rehabilitation charges. When displaying error messages, use a Label control and specifically name the missing field and thetype of data to be entered (integer or numeric).

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7