Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C language 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,

image text in transcribed

In C language

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 Meal 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 Caxid Test Screening (50% for 1 adult) Enter pregrant non's name Alyssa Enter ons ID 1122) Enter prices paid for maternity services -> baby_care, real and could test use. see. 930.00 The program must satisfy the following requirements. pou 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 Cavid Test Screening). The example output on the screen is shown in Figure 1. Enter pregnant non's nane suvin Enter nom's ID 12331 Enter peices paid for maternity services -> baby_care, real and cold test 100.00 900.00 209.00 Do u want to enter any record -> (Y/N) Y b) Store all the input data in 10 or 2D array Calculate Enter pregnant non's name Malinha the average of the three maternity services in function Enter non's ID 211333 Salexrs. This function should accept baby, meal, and Enter prices paid for maternity services -) baby care, real and corld_text: 160.09 900.ee 750.00 soxud as arguments and returns the average value Do u want to enter any record -> (Y/N) N c) Determine pregnant mom who are eligible for free THANK YOU one room update and 50% discount Coxid 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

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_2

Step: 3

blur-text-image_3

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

Write down the circumstances in which you led.

Answered: 1 week ago