Answered step by step
Verified Expert Solution
Question
1 Approved Answer
program in C++ format. (50 points) Write a that calculates the total cost of a hospital stay. The daily base charge is $350. The hospital
program in C++ format. (50 points) Write a 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 program should accept the following input: 3. 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 functions in the application: salc Stax Charzes-Calculates and return the base charges for the hospital stay. This is computed as $350 times the number of days in the hospital. calcMiscCharzes- Calculates and returns the total of the medication, surgical, lab, and physical rehabilitation charges cals TotalCharges-Calculates and returns total charges
program in C++ format.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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