Answered step by step
Verified Expert Solution
Link Copied!

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
$500 unless the person is has been pre-approved for minimum charges in which case the
daily charge is $200. The hospital also charges for surgical fees, lab tests, medications and
physical rehab. The application should accept the following input:
Pre-approved 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

Students also viewed these Databases questions