Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create an application that calculates the total cost of a hospital stay. Ihe charge per day is $ 5 0 0 unless the person is
Create an application that calculates the total cost of a hospital stay. Ihe charge per day is
$ unless the person is has been preapproved for minimum charges in which case the
daily charge is $ The hospital also charges for surgical fees, lab tests, medications and
physical rehab. The application should accept the following input:
Preapproved status for minimum charges Yes or No is entered
The number of days spent in the hospital
The amount for surgical fees
The amount for lab test fees
The amount for medications
The amount for physical rehabilitation charges
Create the following methods to use in your application:
DailyCost Calculates and returns the total per day charges to stay at the hospital. The
number of days and preapproved status should be passed as arguments to this method.
OtherCharges Calculates and returns the total of the surgical, lab, medication and physical
rehabilitation charges. These four values should be passed as arguments to this method.
They are added together to calculate the return value.
TotalCharges Calculates and returns the total charges. The daily cost and total of other
charges should be passed as arguments to this method. The daily cost and total of other
charges are added together to calculate the return value.
The form you create should look similar to this image.
Hospital Charges
Preapproved
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started