Question: solve it by C language using structure and files Consider a hospital which treats 100 patients. For each patient the hospital records the following: Patient

 solve it by C language using structure and files Consider a

solve it by C language using structure and files

Consider a hospital which treats 100 patients. For each patient the hospital records the following: Patient name (string), Patient telephone no integer), Patient Gender (char), and treatment days spent in hospital (integer) It is required to write a computer program which do the following: 1) Create the appropriate structure which can hold the data of patients. 2) Read data of all patients from file called Patients.txt. 3) Print on screen all data of female patients whose treatment days are more than the average treatment days of all patients

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!