Question: (please hurry up) solve in C programming , no need for extra information .thank u SECTION 3: Programming [20 MARKS] ANSWER (1) QUESTION BELOW. As

![extra information .thank u SECTION 3: Programming [20 MARKS] ANSWER (1) QUESTION](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f51d642f6ac_87566f51d63c285a.jpg)

(please hurry up) solve in C programming , no need for extra information .thank u
SECTION 3: Programming [20 MARKS] ANSWER (1) QUESTION BELOW. As the effects of COVID-19 spread across the entire world, many hospitals have closed during the pandemic. Some departments are open like emergency department and the highest priority is given to patients who may have COVID-19 or other infections from those with other emergent problems. The purpose is to help reduce the spread of COVID-19 and other infectious diseases, and infection prevention among patient rooms and operating rooms. However, KPJ Hospitals are open and available to provide health services with safe emergency and essential care like maternity services. There are at most 100 patients. The packages offered by KPJ hospitals are as follows: Table 1: Maternity Services and Prices Information (2 Days Stay) Maternity Services Prices (RM) Baby Care Greater or equal to 950.00 Meal Greater or equal to 900.00 Covid Test Screening Greater or equal to 805.00 Average Greater or equal to 885.00 Total Price > 885.00 is eligible for free: Free Room Upgrade (1 Day Average Greater or equal to 885.00 Total Price > 885.00 is eligible for free; Free Room Upgrade (1 Day) Free Covid Test Screening (50% for adult) The program must satisfy the following requirements. 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 Covid Test Screening). The example output on the screen is shown in Figure I. b) store all the input data in 10 or 20 array. Calculate the average of the three maternity services in function calAvrg. This function should accept baby, meal, and covid as arguments and returns the average value. c) Determine pregnant mom who are eligible for free one room update and 50% discount Covid 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 ("result.txt'). The expected output in the output file is shown in Figure 2 Enter pregnant mom's name :Alyssa Enter mom's ID: 112233 Enter prices paid for maternity services -> baby_care, meal and covid_test: losa 9000 3A NA Enter pregnant mom's name :Alyssa Enter mom's ID: 112233 Enter prices paid for maternity services -> baby_care, meal and covid_test: 950.ee gee.ee 93e.ee po u want to enter any record:-> (Y/N) Y Enter pregnant mom's name : Suvin Enter mom's ID: 123321 Enter prices paid for maternity services -> baby_care, meal and covid_test: gee.ee gee.ee see.ee bo u want to enter any record:-> (Y/N) Y Enter pregnant mon's name :Malinha Enter mom's ID: 111333 Enter prices paid for maternity services -> baby_care, meal and covid_test: 96e.ee gee.ee 7se.ee bo u want to enter any record:-> (Y/N) N THANK YOU Figure 1: Sample output on the screen Mom's name PREGNANT MOM'S ELIGIBILITY INFORMATION ID Baby_care Meal Covid_test Average ARRA DALA ARRA DR42 pou want to enter any record:-> ( Y/N) N THANK YOU Figure 1: Sample output on the screen PREGNANT MOM'S ELIGIBILITY INFORMATION Mom's name ID Baby_care Meal Covid_test Average Alyssa 112233 950.ee 900.00 93e.ee 926.67 Surin 123321 900.ee 900.ee see.ee 866.67 Malinha 111333 960.ee 900.ee 750.00 870.00 Moms who are eligible: Alyssa 112233 Figure 2: Sample output in the output file (result.txt) 7 A B 1 !!! III P c? 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
