Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C program Write a program that calculates a hospital bill for a surgical procedur You will write a total of R- not including main) functions:

C program
image text in transcribed
Write a program that calculates a hospital bill for a surgical procedur You will write a total of R- not including main) functions: getData), determineSurgicalF ees0) determinelabfees). printHos The getData() function will ask days the patient stayed in the hospital, the level of surgery th medications they have and the prices of each of those meds (stored in an array) pitalBill), Details for the functions are as follows: the user for the patient's first name, last name, the number of ey had (1-5), the number of termineSurgicalFees) function willacept the surgical level and a surgical prices array ased on the level. parameters. The function will then determine and return the surgical fee b The determineLabFees() function will ccept the surgical level and a labp parameters. The function will then determine and return the lab fee based on the level. printHospitalBill) will acept all data necessary to display the following information. You eed to send the medication prices array to this function to calculate the charges. will n Billing Statement for Level 2 Surgical Procedure. Patient Name: Castor, Jacob $1400.00 Daily Charge: Medication Charges:$600.00 Surgical Charges: 3250.00 Lab Charges: $1025.00 Total Due $6275.00 The main) function will call ALL of the functions and will contain the prices for the surgical procedures and the lab fees in arrays as follows: Surgical prices Lab Fees Level 1: Level 2 Level 3: Level 4: Level 5: $ 1,500.00 $ 3,250.00 6,579.99 $12,999.99 $25,450.00 500.00 $1,025.00 $2,500.99 $5,290.00 $9,875.99

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

Students also viewed these Databases questions

Question

KEY QUESTION Refer to the table in question

Answered: 1 week ago