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
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...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr