Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C programming Follow the input and output format This is the patient_data.txt efore the semester is opening, the school will hold a health examination for
C programming
Follow the input and output format
This is the patient_data.txt
efore the semester is opening, the school will hold a health examination for every freshmen to check their body health. And doctors will analyze the data to know the student's health condition. Please design a program to help the doctors analyze easilier, the data will include student s name, sex, height weight, blood pressure and blood lipids (1) from the file "patients data.txt", and you need to store the information in a Structure array, and according the input from keyboard input to print out the patients' informations BOC The structure contains a string and a boolean for sex (True is female, False is male), a floating point array with the size of 4 for other informations. The program should be able to do the following: Input an integer, which is the size of the array, Read the information from the file (same sequence as above), Input an integer being 0.1.2, which represents choosing male, female, or all, respectively. Input an integer being 0, 1, 2 or 3, which represents choosing height, weight blood pressure, or blood lipids, respectively. Input two numbers, find the patients with the chosen attribute between two input numbers (lower bound first, and the range without boundary), and print their names and its attribute. please input the 312e of data, please input whach sex we want to select please input which attribute we want to choose. D please input the range of concern. 150 160 Marie Curie 1 155.600000 40.30090090.700000 75.300006 please anput the size of data. B please input which sex we want to select. 2 please input which attribute we want to choose. O please input the range of concern. 150 160 Maria Curie 1 155.600000 40.300000 90.700000 75.300000 Jolin Tsai 1 158.900000 41.300000 84.600000 91.600000 Problem 4. (20%) Merge Lists Size Microsoft Edge PD 283 KB exercise.pdf 1/4/2022 2:29 PM patients_data.txt - Notepad Fiks Edit Format View Help Isaac_Newton 170.3 55.1 103.7 87.6 Maria Curie 1 155.6 40.3 90.7 75.3 Pierre de_Fermat 0 174.5 92.7 150.9 184.9 Stephen Hawking 0 163.7 60.7 136.5 130.4 Helen Keller 1 143.4 49.2 111.1 127.5 Jennifer Lopez 1 165.2 57.9 125.4 100.4 Niels Abel 0 130.6 77.9 78.4 166.5 Jolin Tsai 1 158.9 41.3 84.6 91.6 James Maxwell 0 203.5 87.4 165.5 143.1 Johann Gauss 199.0 100.0 167.0 152.0 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started