Extracted 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.
Extracted 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.