Question: In C, implement basic HealthProfile structure The structures members should include the persons first name, last name, gender, and date of birth (consisting of separate
In C,
implement basic HealthProfile structure
The structures members should include the persons first name, last name, gender, and date of birth (consisting of separate attributes for the month, day and year of birth). program should declare a HealthProfile structure variable and a pointer to the structure type, and initialize this pointer to the address of the HealthProfile structure variable in the main() function have another function that prompts for the persons information, and receives these data and uses them to set the members of the HealthProfile structure variable created in the main() function. This function should be called by-reference in the main() function have another function that receives the year of birth, and then calculate and return the users age in years have another function that prints all the information of a person by using either the HealthProfile variable or the pointer to this variableincluding the persons first name, last name, gender, date of birth, and also print the persons age in years all these three functions should be called at least once Your program must be saved as Project1_YourLastName.c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
