Create a Friend class that contains a first name, last name, a birthday, and a telephone number. Create a Contacts class that contains an array of Friend as well as the owner's name and cell phone Number. You cannot assume a particular number of friends before reading the file. Make sure it has a member function that can return contact information given the first name of the contact. Name this function something reasonable.Write a program that creates a Contacts object. The friend array should be filled with data from the Data.txt file. Note that the birthday information is in the form of a string year:month:date.
Your program should then do the following: Create a Contacts object with your name as the owner and phone number. Display all the friends in the Contacts object as well as the owner's name and phone number of the owner. Look up the following first names in the contacts object and print the phone number of the "person": Bob, Youth, Mario. Look up following first name in the contact object and print the birthday of the "person": Hiten, Daisy, Alex.
Do not request any user input
Data.txt file contain:
Hiten Patel 1934:06:09 818-321-5151
Mario Feliz 1932:05:25 818-644-2332
Daisy Lopez 1955:05:10 714-899-2155
Alex Lopez 1926:10:14 323-833-4722
Bob Speaks 1963:02:22 310-434-0234
Youth Leong 1935:03:02 831-234-1312