SHI Hospital provides top-notch medical care with comfortable rooms, The following are the types of rooms and their rates. Charge per day (RM) 800 Type of Charge Junior Suite Deluxe Suite Executive Suite Presidential Suite Critical Care Units: ICU/CCU/NICU |Nursery 980 1600 3800 450 60 Write a C++ program which inputs the patient name, room name, the number of days spent in the hospital, the critical care unit (Y or N), the nursery (Y or N), and the mode of payment (Credit Card – B or Cash – C). Then, the program will calculate the total charge for each patient. A 10% discount will be given if the mode of payment is cash. Print the receipt as follows for each customer: SHI HOSPITAL Patient Name Alya Bella Room Name Executive Suite Total Charge RM2110.00 Discount RM211.00 Total Payment RM1899.00 Thank you and please come again.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
SHI Hospital provides top-notch medical care with comfortable rooms, The following are the
types of rooms and their rates.
Charge per day (RM)
800
Type of Charge
Junior Suite
Deluxe Suite
Executive Suite
Presidential Suite
Critical Care Units:
ICU/CCU/NICU
|Nursery
980
1600
3800
450
60
Write a C++ program which inputs the patient name, room name, the number of days spent
in the hospital, the critical care unit (Y or N), the nursery (Y or N), and the mode of payment
(Credit Card – B or Cash – C). Then, the program will calculate the total charge for each
patient. A 10% discount will be given if the mode of payment is cash. Print the receipt as
follows for each customer:
SHI HOSPITAL
Patient Name
Alya Bella
Room Name
Executive Suite
Total Charge
RM2110.00
Discount
RM211.00
Total Payment
RM1899.00
Thank you and please come again.
Transcribed Image Text:SHI Hospital provides top-notch medical care with comfortable rooms, The following are the types of rooms and their rates. Charge per day (RM) 800 Type of Charge Junior Suite Deluxe Suite Executive Suite Presidential Suite Critical Care Units: ICU/CCU/NICU |Nursery 980 1600 3800 450 60 Write a C++ program which inputs the patient name, room name, the number of days spent in the hospital, the critical care unit (Y or N), the nursery (Y or N), and the mode of payment (Credit Card – B or Cash – C). Then, the program will calculate the total charge for each patient. A 10% discount will be given if the mode of payment is cash. Print the receipt as follows for each customer: SHI HOSPITAL Patient Name Alya Bella Room Name Executive Suite Total Charge RM2110.00 Discount RM211.00 Total Payment RM1899.00 Thank you and please come again.
The program will be repeated to add other patients. At the end of the process, the following
report will be printed (example):
Bar Graph:
Junior Suite
Deluxe Suite
..... ....
Executive Suite
Presidential Suite :*****
One asterisk (*) is equal to RM1,000
SHI HOSPITAL
Junior Suite
RM8,000.00
Deluxe Suite
RM9.860.00
Executive Suite
RM16,500.00
RM4,800.00
RM38,980.00
Presidential Suite
|Total Sales (RM)
For the bar graph, it showing the total payment for each room type. Each asterisk in the bar
graph equals to RM1,000. The total payment of each roomtype is rounded to the nearest
1,000 ringgit. For example, if total payment is RM1,600, it cannot display 1.6 asterisks. Thus,
round it to the nearest 1,000, RM1,600 will be the same as 2,000 and will produce two
asterisks.
Transcribed Image Text:The program will be repeated to add other patients. At the end of the process, the following report will be printed (example): Bar Graph: Junior Suite Deluxe Suite ..... .... Executive Suite Presidential Suite :***** One asterisk (*) is equal to RM1,000 SHI HOSPITAL Junior Suite RM8,000.00 Deluxe Suite RM9.860.00 Executive Suite RM16,500.00 RM4,800.00 RM38,980.00 Presidential Suite |Total Sales (RM) For the bar graph, it showing the total payment for each room type. Each asterisk in the bar graph equals to RM1,000. The total payment of each roomtype is rounded to the nearest 1,000 ringgit. For example, if total payment is RM1,600, it cannot display 1.6 asterisks. Thus, round it to the nearest 1,000, RM1,600 will be the same as 2,000 and will produce two asterisks.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY