Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment Plan and code a C++ program utilizing one or more selection structures to solve the following problem: Write a program to compute charges for
Assignment Plan and code a C++ program utilizing one or more selection structures to solve the following problem: Write a program to compute charges for a patient in Community Hospital. Charges per day per patient are computed from the following Room charges per day Private room Semi private room: Ward: $125.00 $95.00 $ 75.00 $ 1.75 $ 3.50 Telephone charge Television charge Name of the individual, patient identification number, type of room. Have the user enter the number of days, the type of room (P, S, W), whether or not patient had a telephone (Y/N), and whether or not the patient had a television (Y/N). Compute the patient's bill and print out an itemized statement similar to the following COMMUNITY HOSPITAL PATIENT BILLING STATEMENT Name: Patient ID Number of days in hospital 5 Type of Room Room Charge: Telephone Charge Television Charge TOTAL DUE: Mary Jones 9523 Private $625.00 $0.00 $17.50 $642.50 BE SURE TO INCLUDE ADEQUATE ERROR CHECKING IN YOUR PROGRAM AND ERROR DATA WHEN YOU RUN THE PROGRAM TO DEMONSTRATE ERROR CHECKING Input Patient name and ld, number of days, room type, telephone option, television option Output ltemized bill of each charge and total owed by the patient. Label all output for readability Be sure your output contains user prompts and what was entered by the user in addition to the results of your program processing Adequately check entered data for validity. Use adequate test data to process all valid data and representative examples of invalid data to show how your program handles invalid data
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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