Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Prices (RM) Greater or equal to 950.00 Greater or equal to 900.00 As the effects of COVID-19 spread across the entire world, many Maternity Services

image text in transcribed

Prices (RM) Greater or equal to 950.00 Greater or equal to 900.00 As the effects of COVID-19 spread across the entire world, many Maternity Services hospitals have closed during the pandemic. Some departments are open like emergency department and the highest priority is given Baby Care to patients who may have COVID-19 or other infections from those with other emergent problems. The purpose is to help reduce the Mcal spread of COVID-19 and other infectious diseases, and infection Covid Test Screening prevention among patient rooms and operating rooms. However, KPJ hospitals are open and available to provide health services with Average safe emergency and essential care like maternity services. There are at most 100 patients. The packages offered by KPJ hospitals are as follows: Greater or equal to 805.00 Greater or equal to 885.00 Table 1: Maternity Services and Prices Information (2 Days Stay) Total Price > 885.00 is eligible for free; . Free Room Upgrade (1 Day) . Free Coxid Test Screening (50% for 1 adult) Enter pregunt non s nase Alyssa Enter ons ID 112233 Inter prices paid for maternity services baby_care, real and covbo_test se see.69 930.00 The program must satisfy the following requirements Do u want to enter any record -> (Y/N) Y a) Read the pregnant mom's information from the keyboard which consists of pregnant mom's identification number, name, and maternity services (Baby Care, Meal and Caxid Test Screening) The example output on the screen is shown in Figure 1 Enter pregnant non's nanesin Enter nom's ID 123321 Enter prices paid for maternity services -> baby_care, real and cevid_test 100.ee 909.00 800.00 po u want to enter any record -> (Y/N) Y b) Store all the input data in 10 or 2D array Calculate the average of the three maternity services in function salAxts. This function should accept baby, meal, and soxid as arguments and returns the average value Enter pregnant nor's name Malinha Enter non's ID: 111333 Enter prices paid for maternity services -> baby_care, real and cerdd_test: 10.80 903. ed 750.00 pou want to enter any record -> (Y/N) N THANK YOU C) Determine pregnant mom who are eligible for free one room update and 50% discount Corid Test Screening for her husband or not eligible based on the condition in Table 1 d) write the output that includes the mom's information and the status (eligible or not eligible) in the output file I"result txt") The expected output in the output file is shown in Figure 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions

Question

2 What are the implications for logistics strategy?

Answered: 1 week ago