SlideShare a Scribd company logo
1 of 1
Download to read offline
Conway Regional Hospital has recently hired you to help them write a program for their Inpatient
billing system. Write a program to produce an inpatient hospital bill to serve as a prototype (model)
for the administration to review. Input for the system will be the Patient ID number, the Patient
name, hospital stay measured in days, the daily inpatient rate, medication charges, and any
laboratory charges. Output should consist of the Patient ID number, the Patient name, number of
days spent in the hospital, the daily inpatient rate, the total Inpatient Charges, Medication Charges
with computed taxes, Laboratory charges, total Additional Charges, and the Total Bill. Medication
charges are taxed at an 8.5% tax rate. Use named constants when appropriate. Use main( ) as
the driver function. Allow the user to run the program as many times as desired. Write 5 functions
that main( ) calls to accomplish the task: 1. getPatientData( ): Prompts the user for the Patient ID,
the Patient name, number of days in the hospital, Daily Rate, medication charges, and laboratory
charges. Criteria for input validation: a. Patient ID must be an integer between 2000 and 8000,
inclusive. Do not allow users to enter an ID number out of this range. b. Days in Hospital cannot
be less than 1. Do not allow the user to enter a zero or a negative number of days stayed. c.
Inpatient Rate must be greater than zero. Do not allow the user to enter a zero or a negative rate.
2. computeInpatientCharges( ): Computes the inpatient charges which are the number of days in
the hospital times the daily inpatient rate. 3. computeAdditionalCharges( ): Computes taxes for
Medication and the total Additional Charges as shown in the sample bill below. 4.
computeTotalBill( ): Calculates the total bill for the patient. 5. displayResults( ): Display Patient ID,
Patient name, hospital stay in days, Inpatient Rate, Total Inpatient Charges, Medication with tax
charge, Laboratory Charges, Total Additional Charges, and Total Bill. Sample Input: Enter Patient
ID: 6468 Enter Patient Name: Susan Hill Enter Days stayed in the hospital: 5 Enter daily Inpatient
Rate: 100.50 Enter Medication Charges: 65.50 Enter Laboratory Charges: 85.00 Sample Output:
Patient ID: 6468 Patient Name: Susan Hill Length of stay (# of Days): 5 days Daily Inpatient Rate:
$ 100.50 Total Inpatient Charges: $ 502.50 Additional Charges: Medication: $ 65.50 Med Taxes $
5.57 Laboratory: $ 85.00 Total Additional Charges: $ 156.07 Total Bill: $ 658.57 Would you like to
calculate another Patient bill? Y or N N

More Related Content

Similar to Conway Regional Hospital has recently hired you to help them.pdf

Assignment Exercise 4–1 Contractual Allowances Physician office.docx
Assignment Exercise 4–1 Contractual Allowances Physician office.docxAssignment Exercise 4–1 Contractual Allowances Physician office.docx
Assignment Exercise 4–1 Contractual Allowances Physician office.docx
rock73
 
ENTD311_CASE2Community Patient Portal System Part 1.pdfCP.docx
ENTD311_CASE2Community Patient Portal System Part 1.pdfCP.docxENTD311_CASE2Community Patient Portal System Part 1.pdfCP.docx
ENTD311_CASE2Community Patient Portal System Part 1.pdfCP.docx
SALU18
 
Part IDescribe the following 4 types of costsFixedVariableS.docx
Part IDescribe the following 4 types of costsFixedVariableS.docxPart IDescribe the following 4 types of costsFixedVariableS.docx
Part IDescribe the following 4 types of costsFixedVariableS.docx
dunnramage
 
Operating BudgetBUDGET SAMPLECurrent YearNew Budget DifferenceCom.docx
Operating BudgetBUDGET SAMPLECurrent YearNew Budget DifferenceCom.docxOperating BudgetBUDGET SAMPLECurrent YearNew Budget DifferenceCom.docx
Operating BudgetBUDGET SAMPLECurrent YearNew Budget DifferenceCom.docx
vannagoforth
 
Conditions of participation presentation
Conditions of participation presentationConditions of participation presentation
Conditions of participation presentation
learfield
 
Compensation Personal Application Report OverviewSearch Los Ang.docx
Compensation Personal Application Report OverviewSearch Los Ang.docxCompensation Personal Application Report OverviewSearch Los Ang.docx
Compensation Personal Application Report OverviewSearch Los Ang.docx
maxinesmith73660
 
This is from healthcare management classEXERCISE 8 IMPROVEMENT
This is from healthcare management classEXERCISE 8 IMPROVEMENT This is from healthcare management classEXERCISE 8 IMPROVEMENT
This is from healthcare management classEXERCISE 8 IMPROVEMENT
blossomblackbourne
 
Understanding Healthcare Statistics1. Youre trying to determine.docx
Understanding Healthcare Statistics1. Youre trying to determine.docxUnderstanding Healthcare Statistics1. Youre trying to determine.docx
Understanding Healthcare Statistics1. Youre trying to determine.docx
marilucorr
 

Similar to Conway Regional Hospital has recently hired you to help them.pdf (20)

Laboratory medical billing services
Laboratory medical billing servicesLaboratory medical billing services
Laboratory medical billing services
 
Revenue Cycle Management
Revenue Cycle ManagementRevenue Cycle Management
Revenue Cycle Management
 
Assignment Exercise 4–1 Contractual Allowances Physician office.docx
Assignment Exercise 4–1 Contractual Allowances Physician office.docxAssignment Exercise 4–1 Contractual Allowances Physician office.docx
Assignment Exercise 4–1 Contractual Allowances Physician office.docx
 
ENTD311_CASE2Community Patient Portal System Part 1.pdfCP.docx
ENTD311_CASE2Community Patient Portal System Part 1.pdfCP.docxENTD311_CASE2Community Patient Portal System Part 1.pdfCP.docx
ENTD311_CASE2Community Patient Portal System Part 1.pdfCP.docx
 
ICNet Global Slides
ICNet Global SlidesICNet Global Slides
ICNet Global Slides
 
Part IDescribe the following 4 types of costsFixedVariableS.docx
Part IDescribe the following 4 types of costsFixedVariableS.docxPart IDescribe the following 4 types of costsFixedVariableS.docx
Part IDescribe the following 4 types of costsFixedVariableS.docx
 
Criterion Docs Standard
Criterion Docs StandardCriterion Docs Standard
Criterion Docs Standard
 
Operating BudgetBUDGET SAMPLECurrent YearNew Budget DifferenceCom.docx
Operating BudgetBUDGET SAMPLECurrent YearNew Budget DifferenceCom.docxOperating BudgetBUDGET SAMPLECurrent YearNew Budget DifferenceCom.docx
Operating BudgetBUDGET SAMPLECurrent YearNew Budget DifferenceCom.docx
 
Dbms mini project
Dbms mini projectDbms mini project
Dbms mini project
 
Management information system
Management information systemManagement information system
Management information system
 
Common challenges faced by Physicians and Practitioners with Medical Billing
Common challenges faced by Physicians and Practitioners with Medical BillingCommon challenges faced by Physicians and Practitioners with Medical Billing
Common challenges faced by Physicians and Practitioners with Medical Billing
 
Conditions of participation presentation
Conditions of participation presentationConditions of participation presentation
Conditions of participation presentation
 
The Latest Self-Pay Trends: New Burdens and Opportunities
The Latest Self-Pay Trends: New Burdens and OpportunitiesThe Latest Self-Pay Trends: New Burdens and Opportunities
The Latest Self-Pay Trends: New Burdens and Opportunities
 
Compensation Personal Application Report OverviewSearch Los Ang.docx
Compensation Personal Application Report OverviewSearch Los Ang.docxCompensation Personal Application Report OverviewSearch Los Ang.docx
Compensation Personal Application Report OverviewSearch Los Ang.docx
 
This is from healthcare management classEXERCISE 8 IMPROVEMENT
This is from healthcare management classEXERCISE 8 IMPROVEMENT This is from healthcare management classEXERCISE 8 IMPROVEMENT
This is from healthcare management classEXERCISE 8 IMPROVEMENT
 
It in hospitals & HIS
It in hospitals & HISIt in hospitals & HIS
It in hospitals & HIS
 
Clinic Management System
Clinic Management SystemClinic Management System
Clinic Management System
 
Most Common Reports You Should Ask From A Medical Billing CompanyPDF.pdf
Most Common Reports You Should Ask From A Medical Billing CompanyPDF.pdfMost Common Reports You Should Ask From A Medical Billing CompanyPDF.pdf
Most Common Reports You Should Ask From A Medical Billing CompanyPDF.pdf
 
Most Common Reports You Should Ask From A Medical Billing Company.pptx
Most Common Reports You Should Ask From A Medical Billing Company.pptxMost Common Reports You Should Ask From A Medical Billing Company.pptx
Most Common Reports You Should Ask From A Medical Billing Company.pptx
 
Understanding Healthcare Statistics1. Youre trying to determine.docx
Understanding Healthcare Statistics1. Youre trying to determine.docxUnderstanding Healthcare Statistics1. Youre trying to determine.docx
Understanding Healthcare Statistics1. Youre trying to determine.docx
 

More from abhijitakolkar1

RunHeavy Corporation RHC is a corporation that manages a l.pdf
RunHeavy Corporation RHC is a corporation that manages a l.pdfRunHeavy Corporation RHC is a corporation that manages a l.pdf
RunHeavy Corporation RHC is a corporation that manages a l.pdf
abhijitakolkar1
 
Strategic Public Sector Governance The Critical Role of Comm.pdf
Strategic Public Sector Governance The Critical Role of Comm.pdfStrategic Public Sector Governance The Critical Role of Comm.pdf
Strategic Public Sector Governance The Critical Role of Comm.pdf
abhijitakolkar1
 
Question 11 1 point Control is the process of comparing ac.pdf
Question 11 1 point Control is the process of comparing ac.pdfQuestion 11 1 point Control is the process of comparing ac.pdf
Question 11 1 point Control is the process of comparing ac.pdf
abhijitakolkar1
 
Need help with formulas Begin this exercise by opening the .pdf
Need help with formulas  Begin this exercise by opening the .pdfNeed help with formulas  Begin this exercise by opening the .pdf
Need help with formulas Begin this exercise by opening the .pdf
abhijitakolkar1
 
Kresel Zihniyet Kresel Zihniyet Bu nedir Neden nemlid.pdf
Kresel Zihniyet  Kresel Zihniyet  Bu nedir Neden nemlid.pdfKresel Zihniyet  Kresel Zihniyet  Bu nedir Neden nemlid.pdf
Kresel Zihniyet Kresel Zihniyet Bu nedir Neden nemlid.pdf
abhijitakolkar1
 

More from abhijitakolkar1 (20)

River bed Corporation is preparing its December 312020 ba.pdf
River bed Corporation is preparing its December 312020  ba.pdfRiver bed Corporation is preparing its December 312020  ba.pdf
River bed Corporation is preparing its December 312020 ba.pdf
 
Which of the following statements is supported by the theory.pdf
Which of the following statements is supported by the theory.pdfWhich of the following statements is supported by the theory.pdf
Which of the following statements is supported by the theory.pdf
 
Write a threepage report of approximately 1 500 words in .pdf
Write a threepage report of approximately 1 500 words in .pdfWrite a threepage report of approximately 1 500 words in .pdf
Write a threepage report of approximately 1 500 words in .pdf
 
Which of the following are associated with mitotic division .pdf
Which of the following are associated with mitotic division .pdfWhich of the following are associated with mitotic division .pdf
Which of the following are associated with mitotic division .pdf
 
What is the optimal foraging model Natural selection shou.pdf
What is the optimal foraging model   Natural selection shou.pdfWhat is the optimal foraging model   Natural selection shou.pdf
What is the optimal foraging model Natural selection shou.pdf
 
Sheffield Corp emite 5100 acciones ordinarias de valor nomi.pdf
Sheffield Corp emite 5100 acciones ordinarias de valor nomi.pdfSheffield Corp emite 5100 acciones ordinarias de valor nomi.pdf
Sheffield Corp emite 5100 acciones ordinarias de valor nomi.pdf
 
What do the following program segments print Find the answe.pdf
What do the following program segments print Find the answe.pdfWhat do the following program segments print Find the answe.pdf
What do the following program segments print Find the answe.pdf
 
The North American pronghorn has a number of adaptations whi.pdf
The North American pronghorn has a number of adaptations whi.pdfThe North American pronghorn has a number of adaptations whi.pdf
The North American pronghorn has a number of adaptations whi.pdf
 
The journal entry to record the accrual of interest expense .pdf
The journal entry to record the accrual of interest expense .pdfThe journal entry to record the accrual of interest expense .pdf
The journal entry to record the accrual of interest expense .pdf
 
tewer mill subit a dim in the coming vear 0055094501110.pdf
tewer mill subit a dim in the coming vear 0055094501110.pdftewer mill subit a dim in the coming vear 0055094501110.pdf
tewer mill subit a dim in the coming vear 0055094501110.pdf
 
TA 204a Differentiate local from systemic signs of malign.pdf
TA 204a  Differentiate local from systemic signs of malign.pdfTA 204a  Differentiate local from systemic signs of malign.pdf
TA 204a Differentiate local from systemic signs of malign.pdf
 
RunHeavy Corporation RHC is a corporation that manages a l.pdf
RunHeavy Corporation RHC is a corporation that manages a l.pdfRunHeavy Corporation RHC is a corporation that manages a l.pdf
RunHeavy Corporation RHC is a corporation that manages a l.pdf
 
Suppose that Econland experiences a recession.pdf
Suppose that Econland experiences a recession.pdfSuppose that Econland experiences a recession.pdf
Suppose that Econland experiences a recession.pdf
 
Strategic Public Sector Governance The Critical Role of Comm.pdf
Strategic Public Sector Governance The Critical Role of Comm.pdfStrategic Public Sector Governance The Critical Role of Comm.pdf
Strategic Public Sector Governance The Critical Role of Comm.pdf
 
Question 11 1 point Control is the process of comparing ac.pdf
Question 11 1 point Control is the process of comparing ac.pdfQuestion 11 1 point Control is the process of comparing ac.pdf
Question 11 1 point Control is the process of comparing ac.pdf
 
La venta de negocios puede lograr muchos objetivos diferente.pdf
La venta de negocios puede lograr muchos objetivos diferente.pdfLa venta de negocios puede lograr muchos objetivos diferente.pdf
La venta de negocios puede lograr muchos objetivos diferente.pdf
 
Need help with formulas Begin this exercise by opening the .pdf
Need help with formulas  Begin this exercise by opening the .pdfNeed help with formulas  Begin this exercise by opening the .pdf
Need help with formulas Begin this exercise by opening the .pdf
 
On January 4 2020 Black Corporation acquired 100 of the o.pdf
On January 4 2020 Black Corporation acquired 100 of the o.pdfOn January 4 2020 Black Corporation acquired 100 of the o.pdf
On January 4 2020 Black Corporation acquired 100 of the o.pdf
 
In a survuy peeple were asked whether they thought sun went.pdf
In a survuy peeple were asked whether they thought sun went.pdfIn a survuy peeple were asked whether they thought sun went.pdf
In a survuy peeple were asked whether they thought sun went.pdf
 
Kresel Zihniyet Kresel Zihniyet Bu nedir Neden nemlid.pdf
Kresel Zihniyet  Kresel Zihniyet  Bu nedir Neden nemlid.pdfKresel Zihniyet  Kresel Zihniyet  Bu nedir Neden nemlid.pdf
Kresel Zihniyet Kresel Zihniyet Bu nedir Neden nemlid.pdf
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Conway Regional Hospital has recently hired you to help them.pdf

  • 1. Conway Regional Hospital has recently hired you to help them write a program for their Inpatient billing system. Write a program to produce an inpatient hospital bill to serve as a prototype (model) for the administration to review. Input for the system will be the Patient ID number, the Patient name, hospital stay measured in days, the daily inpatient rate, medication charges, and any laboratory charges. Output should consist of the Patient ID number, the Patient name, number of days spent in the hospital, the daily inpatient rate, the total Inpatient Charges, Medication Charges with computed taxes, Laboratory charges, total Additional Charges, and the Total Bill. Medication charges are taxed at an 8.5% tax rate. Use named constants when appropriate. Use main( ) as the driver function. Allow the user to run the program as many times as desired. Write 5 functions that main( ) calls to accomplish the task: 1. getPatientData( ): Prompts the user for the Patient ID, the Patient name, number of days in the hospital, Daily Rate, medication charges, and laboratory charges. Criteria for input validation: a. Patient ID must be an integer between 2000 and 8000, inclusive. Do not allow users to enter an ID number out of this range. b. Days in Hospital cannot be less than 1. Do not allow the user to enter a zero or a negative number of days stayed. c. Inpatient Rate must be greater than zero. Do not allow the user to enter a zero or a negative rate. 2. computeInpatientCharges( ): Computes the inpatient charges which are the number of days in the hospital times the daily inpatient rate. 3. computeAdditionalCharges( ): Computes taxes for Medication and the total Additional Charges as shown in the sample bill below. 4. computeTotalBill( ): Calculates the total bill for the patient. 5. displayResults( ): Display Patient ID, Patient name, hospital stay in days, Inpatient Rate, Total Inpatient Charges, Medication with tax charge, Laboratory Charges, Total Additional Charges, and Total Bill. Sample Input: Enter Patient ID: 6468 Enter Patient Name: Susan Hill Enter Days stayed in the hospital: 5 Enter daily Inpatient Rate: 100.50 Enter Medication Charges: 65.50 Enter Laboratory Charges: 85.00 Sample Output: Patient ID: 6468 Patient Name: Susan Hill Length of stay (# of Days): 5 days Daily Inpatient Rate: $ 100.50 Total Inpatient Charges: $ 502.50 Additional Charges: Medication: $ 65.50 Med Taxes $ 5.57 Laboratory: $ 85.00 Total Additional Charges: $ 156.07 Total Bill: $ 658.57 Would you like to calculate another Patient bill? Y or N N