Question: Need C# with comments explaining each variable and step. I'm using Virtual Studio Windows form .net framework. Create an application that calculates the total cost

Need C# with comments explaining each variable and step. I'm using Virtual Studio Windows form .net framework.

Create an application that calculates the total cost of a hospital stay. The daily base charge is $350. The hospital also charges for medication, surgical fees, lab fees, and physical rehab.

The application should accept the following input.

Number of days spent in the hospital

Medication charges

Surgical charges

Lab fees

Physical rehab charges

Create and use the following value-returning methods in the application:

CalcStayCharges - Calculates and returns the base charges for the hospital stay. This is computed as $350 times the number of days in the hospital.

CalcMiscCharges - Calculates and returns the total of the medication, surgical, lab, and rehab charges.

CalcTotalCharges - Calculates and returns the total charges.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!