Using strDate and strPerson, as below, create an application (using the C programming language) that contains an array of six people using the data below.

struct strDate
{
int nDay;
int nMnth;
int nYear;
};
struct strPerson
{
char arcFirstName[50];
char arcLastName[50];
char cSex;
struct strDate strDOB;
struct strDate strStartDate;
};
Person1
David, Hodgkiss, M, 13/5/1964, 01/09/2001.

Person 2
James, McCarren, M, 18/6/1966, 01/09/1990.

Person 3
Umar, Raza, M, 4/9/1972, 05/12/2013.

Person 4
John, Cox, M, 12/12/1983, 07/11/2009.

Person 5
Tracy, Lewis, F, 3/2/78, 2/7/1982.

Person 6
Ada, Lovelace, F, 10/12/1815, 00/00/00. /* Why “00/00/00”? */

Please note: all these dates are false except for one. Can you determine which is the correct date?

The programme should offer a menu system and provide the following search facilities.

  • Search by gender
  • Sear by last name.
  • Search by name (single input and consider both first and last name).
  • Search by single year of birth
  • Search by year of start inputting a year range (e.g. 1972 to 1984).
  • Search by date of birth, i.e. inputting full date (Hint - You will need to think about using &&)

Note: the structure definitions should be contained within a header file (.h).

Give your files suitable names.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.