Texts: Exercise: The file persons.txt (provided contains the details of several persons who are members in a health club. Each line contains the information about one person and consists of space-separated fields, i.e., two strings that are the first name and the last name, followed by the telephone number. For example, the first two lines might contain: Saeed 508998024 Jason Fieri 6480235. You are to develop a program that allows users to add, search, delete, and view persons' details.
The Person class is provided to you with the following data and function members:
1. Three data members: first name, last name, phone number - as described above.
2. A constructor with arguments (first name, last name, and phone number).
3. Getter functions for all data members.
4. An overloaded output stream operator << that prints all three data members, separated by a space character.
Your main function should create a chab which is a container (either a vector or a list object) that stores several persons (cf. the provided driver code). Note that you should be able to use either a vector or list interchangeably; all your code should be exactly the same regardless.
Recall that using C++ STL containers, iterators, and algorithms allows writing code that works in all cases, i.e., regardless of which container is used or what kind of data it contains.
Your program should read all persons' details from the input file and present a text menu, as illustrated hereafter, that allows users to search, add, or delete a person to/from the health club. Note that your program should repeatedly present the menu until the user chooses to exit.
The following options are available:
1. For option #1, your program should ask the user to type in a first and last name, then search for a matching person. It will print the phone number, if found, or an error message if not.
2. Option #2 will prompt the user for the three fields and add a new person to the club.
3. Option #3 will ask the user to provide a phone number, then search for a match. It will delete the person from the team, if found, or print an error message if not.
4. Option #5 will print all persons registered in the health club in reverse.
5. Option #6 will cause the program to terminate.