you are required to keep tailoring records of fellow students in your class. each record is made up of the following fields:
(a)Fname: a character array of maximum15 characters representing the first name of the student
(b)Sname: a character array of maximum 18 characters representing the surname of the student
(c)Dob: a character array entered as dd/mm/yyyy representing the date of birth of the student
(d)Height: a float representing the student's height in metres
(i)define an appropriate structure to store a single record[8]
(ii)define an array caled all_records for storing 7 records[2]
(iii)define a function called enter_record() that allows a user to input a full single record, and assigns the value to the next empty slot in the array all_records[8]
(iv)define a function printf() that prints out all non-empty records in the array all_records[8]
(v)write a function that extracts the date of births of all non-empty records and prints out the names and corresponding date of birth of each record to the screen[10]
(vi)write a function that converts the height to an integer(hence the height is now in centimetres),fi nds the average height of all the students and prints the result to the screen[10]
(vii)write a main function to complete your program and test that your functions work[10]
(a)Fname: a character array of maximum15 characters representing the first name of the student
(b)Sname: a character array of maximum 18 characters representing the surname of the student
(c)Dob: a character array entered as dd/mm/yyyy representing the date of birth of the student
(d)Height: a float representing the student's height in metres
(i)define an appropriate structure to store a single record[8]
(ii)define an array caled all_records for storing 7 records[2]
(iii)define a function called enter_record() that allows a user to input a full single record, and assigns the value to the next empty slot in the array all_records[8]
(iv)define a function printf() that prints out all non-empty records in the array all_records[8]
(v)write a function that extracts the date of births of all non-empty records and prints out the names and corresponding date of birth of each record to the screen[10]
(vi)write a function that converts the height to an integer(hence the height is now in centimetres),fi nds the average height of all the students and prints the result to the screen[10]
(vii)write a main function to complete your program and test that your functions work[10]
Comment