A file of student record contains name, gender(M or F), age(in years) and marital status (single or married). Design a program to read through the file and compute the numbers of married men, single men, married women and single women. Print these numbers on a 'student summary' report. If any single men are over 30 years of age, print their names on a separate 'Single Men' report.