Types of charges Room charges : Junior suite Deluxe suite Executive suite Critical care units: ICU/CCU nursery Charge per day (RM) Patient Name Room Name a) Write a program using C++ language with prompt the user to inputs the patient's 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). 150 250 350 b) Calculates the discount based on the total charge. A discount of 10% will be given if the mode of payment is cash. c) Print the receipt as follows for each customer: ROSEWOOD HOSPITAL Official Receipt Payment Method ICU/CCU Nursery Total Charge Discount Total Payment 300 60 Maserati Executive Suite Cash No No RM 1400.00 RM 140.00 RM 1260.00

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter3: Input/output
Section: Chapter Questions
Problem 4PE: 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and...
icon
Related questions
Question
Types of charges
Room charges :
Junior suite
Deluxe suite
Executive suite
Critical care units:
ICU/CCU
nursery
****
Patient Name
Room Name
a) Write a program using C++ language with prompt the user to inputs
the patient's 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).
b) Calculates the discount based on the total charge. A discount of 10%
will be given if the mode of payment is cash.
c) Print the receipt as follows for each customer:
Payment Method
ICU/CCU
Nursery
Total Charge
Discount
Total Payment
Charge per day (RM)
ROSEWOOD HOSPITAL
****
Official Receipt
150
250
350
300
60
Thank you and please come again
Maserati
Executive Suite
Cash
No
No
RM 1400.00
RM 140.00
RM 1260.00
****
|-|
L
Transcribed Image Text:Types of charges Room charges : Junior suite Deluxe suite Executive suite Critical care units: ICU/CCU nursery **** Patient Name Room Name a) Write a program using C++ language with prompt the user to inputs the patient's 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). b) Calculates the discount based on the total charge. A discount of 10% will be given if the mode of payment is cash. c) Print the receipt as follows for each customer: Payment Method ICU/CCU Nursery Total Charge Discount Total Payment Charge per day (RM) ROSEWOOD HOSPITAL **** Official Receipt 150 250 350 300 60 Thank you and please come again Maserati Executive Suite Cash No No RM 1400.00 RM 140.00 RM 1260.00 **** |-| L
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr