Question: Community Hospital needs a program to compute and print a statement for the charge of each patient. Charges for each day are as follows: a

Community Hospital needs a program to compute and print a statement for the charge of
each patient. Charges for each day are as follows:
a) Room charges: private room, $125.00; semiprivate room, $95.00; or ward,
$75.00
b) Telephone charge: $1.75
c) Television charge: $3.50
Write a program to get two values from the keyboard, the first value is an integer value
indicating the number of days spent in the hospital, and the second value is a string of three
characters. Typical input is: 5 PNY
where 5 indicates the number of days spent in the hospital, P represents the room type (P,
S, or W), N represents the telephone option (Y or N), and Y represents the television option
(Y or N) THIS IS COMPUTER SCIENCE 1 QUESTION PLEASE EXPLAIN IT IN DETAIL AND STEP BY STEP AND MAKE SURE THE CODE IS CORRECT

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!