Programing language is C# 6. Hospital Charges 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: • The number of days spent in the hospital • The amount of medication charges • The amount of surgical charges • The amount of lab fees • The amount of physical rehabilitation 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 physical rehabilitation charges. • CalcTotalCharges—Calculates and returns the total charges.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question
Programing language is C# 6. Hospital Charges 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: • The number of days spent in the hospital • The amount of medication charges • The amount of surgical charges • The amount of lab fees • The amount of physical rehabilitation 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 physical rehabilitation charges. • CalcTotalCharges—Calculates and returns the total charges.
6. Hospital Charges
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:
• The number of days spent in the hospital
• The amount of medication charges
• The amount of surgical charges
• The amount of lab fees
• The amount of physical rehabilitation 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 physical rehabilitation charges.
• CalcTotalCharges-Calculates and returns the total charges.
Transcribed Image Text:6. Hospital Charges 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: • The number of days spent in the hospital • The amount of medication charges • The amount of surgical charges • The amount of lab fees • The amount of physical rehabilitation 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 physical rehabilitation charges. • CalcTotalCharges-Calculates and returns the total charges.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Graphical User Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning