1) Develop an algorithm to read an arbitrary number of the data records, each consisting of a name, age, and code. A Code of 1 will indicate female, a code of 2 will indicate male; and a code of 0 will signify that the end-of-file has been reached. For each record, write down a detail line listing the person's name and age. Additionally, compute and output the following values: Number of males less than or equal to the 21 yrs old. Number of females less than or equal to 21 years old. Average age of the all persons over 21. Total number of the people.