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, $; semiprivate room, $; or ward,
$
b Telephone charge: $
c Television charge: $
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: PNY
where 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 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
