C++ A Manager’s Office requires an application to go through…

Question Answered step-by-step C++ A Manager’s Office requires an application to go through… C++A Manager’s Office requires an application to go through employees’ names and dates of birth and find all the employees’ names and dates of birth that match a specific month. Each line in a data file contains an employee’s first name, last name, and date of birth in this format “mm/dd/yyyy” as followsVivian Murphy,3/20/1968Tyler Andrews,2/2/1971Olivia Douglas,3/28/1973Sawyer Holmes,3/9/1975Rebecca Farrell,3/21/1975When the application starts, the manager will enter the file name to read employees’ information, then he/she will enter the current month to get all employees who were born in this month to prepare the “happy birthday email”.The number of employees in the data file could be hundreds. This amount is different in each data file.Although the names in the data file are not more than 30 characters, but to save memory make sure the names are kept dynamicallyYour responsibility is to create a library of functions in a module called “Birthdate” that can support the main program provided to have the following execution outcome:The names and birthdates in the file are not sorted. Your search results must be sorted based on the year of birth in ascending order.Mandatory functions:bool beginSearch(const char* filename)Opens the datafile. If successful it will print Birthdate search program and returns true otherwise it will print Data file “filename goes here” not found! and return false;bool readBirthDate(int month)Reads the birth records matching the month. If at least one record is matched and read, turns true, otherwise falsevoid sort()Sorts the records based on the year of birth in descending order.void displayBirthdays()Displays the found records as displayed in the execution sample.void deallocate()Releases all the dynamically allocated memory.void endSearch()Finalizes the program by making sure all resources are released and closed and then prints: Birthdate Search Program Closed.Execution SampleV1.1 corrected the data file recordsEnter data file name: bd.csvBirthdate search programEnter a month of birth or 0 to exit: 1113 birthdates found:1) Chelsea Douglas:1941-11-18===================================2) Savana Morgan:1942-11-28===================================3) Joyce Moore:1943-11-15===================================4) Bruce Howard:1949-11-6===================================5) Nicole Andrews:1962-11-5===================================6) Madaline Wells:1968-11-1===================================7) Eddy Cameron:1970-11-18===================================8) James Payne:1974-11-28===================================9) Chelsea Murphy:1976-11-25===================================10) Antony Perry:1989-11-6===================================11) Ellia Craig:1991-11-6===================================12) Dainton Bailey:1997-11-7===================================13) Kevin Martin:1998-11-3===================================Enter a month of birth or 0 to exit: 0Birthdate Search Program Closed. Files provided : BirthDate.h(empty)BirthDate.cpp(empty)main.cpp#include #include “BirthDate.h”using namespace std;using namespace sdds;int main() { bool done = false; int month = 0; char filename[256]; cout << "V1.1 corrected the data file records" << endl; cout << "Enter data file name: "; cin >> filename; if (beginSearch(filename)) { while (!done) { cout << "Enter a month of birth or 0 to exit: "; cin >> month; if (month == 0) { done = true; } else { if (readBirthDate(month)) { sort(); displayBirthdays(); deallocate(); } else { cout << "No match found!" << endl; } } } endSearch(); } return 0;} bd.csvDerek Stevens 9/28/1959Brooke Rogers 8/30/1960Vivian Lloyd 1/9/1961Arianna Montgomery 9/19/1961Edwin Kelley 3/30/1962Preston Murray 8/4/1966Jessica Alexander 9/7/1966Daniel Jones 1/20/1969April Perry 4/28/1972James Payne 11/28/1974Chelsea Murphy 11/25/1976Owen Clark 9/22/1983Myra Perry 2/12/1988Ellia Craig 11/6/1991Chelsea Armstrong 4/6/1994Aiden Wells 10/2/1995Emily Carter 1/22/1996Sawyer Elliott 9/11/1996Evelyn Tucker 10/7/1996Ryan Bailey 9/15/1947Lucy Gibson 5/19/1949Kristian Harper 9/18/1950Jenna Ferguson 3/18/1952Lily Harris 3/23/1956Freddie Moore 5/23/1947Evelyn Alexander 5/26/1947Aldus Johnston 12/8/1949Catherine Davis 6/20/1956Gianna Gibson 2/14/1958Mike Spencer 6/8/1960Nicole Andrews 11/5/1962Arianna Perry 3/9/1964Edith Richards 4/29/1965Fenton Craig 4/28/1966Martin Allen 8/25/1966Eddy Cameron 11/18/1970Luke Grant 12/3/1976Harold Baker 12/10/1981Florrie Brooks 2/27/1984Michelle Armstrong 4/30/1984Max Robinson 8/1/1985Arthur Holmes 7/14/1988Michael Higgins 5/18/1989Antony Perry 11/6/1989Evelyn Ryan 7/31/1995Steven Harris 12/24/1999Joyce Moore 11/15/1943Arthur Smith 3/28/1945Andrew Hall 9/14/1945Isabella Elliott 3/15/1941Savana Morgan 11/28/1942John Nelson 12/23/1943Preston Myers 4/11/1951Camila Hall 1/27/1953Myra Wells 5/5/1953Kirsten Harper 4/1/1955Sarah Edwards 7/13/1955Albert Ryan 10/20/1955Alina Holmes 1/16/1958Elian Alexander 6/15/1964Vincent Hawkins 10/18/1968Rubie Payne 8/10/1972Justin Watson 8/17/1973Tara Gibson 12/13/1973April West 10/18/1976Isabella Watson 7/7/1977Aiden Cole 10/11/1977Julian Warren 5/12/1978Arnold Carter 7/15/1978Aldus Scott 10/24/1980Sabrina Cole 6/18/1984Ashton Hunt 1/7/1989Garry Murray 10/11/1989Rosie Dixon 12/14/1998Chelsea Douglas 11/18/1941Alisa Brown 7/27/1945Alissa Warren 8/26/1945Marcus Clark 4/26/1946George Parker 2/25/1953Agata Cooper 3/31/1956Daisy Baker 4/19/1956Kevin Russell 12/22/1966Vincent Sullivan 12/24/1967Madaline Wells 11/1/1968Deanna Roberts 5/20/1969Melissa Johnston 8/29/1970Walter Jones 9/9/1970Tiana Harris 9/1/1971Lenny Farrell 3/1/1972Gianna Owens 12/8/1976Roman Spencer 6/7/1977Roman Higgins 8/11/1979Lucy Watson 8/26/1979Oliver Morris 9/27/1984Thomas Johnston 4/28/1985Brianna Harrison 4/16/1987Lilianna Hamilton 4/2/1989Paul Alexander 1/26/1990Rosie Smith 7/31/1996Abraham Baker 3/5/1940Ashton Alexander 12/24/1943Chloe Evans 7/30/1949Bruce Howard 11/6/1949Sawyer Parker 5/27/1950Chester Lloyd 7/1/1952Nicholas Perry 9/20/1953Harold Miller 10/27/1957Valeria Cole 5/20/1962Grace Howard 1/14/1965Elise Henderson 5/15/1968Michelle Howard 10/21/1971Carl Cole 10/17/1983Aiden Allen 2/13/1984Richard Nelson 7/9/1987Roland Dixon 4/29/1989Amber Robinson 10/10/1989Tony Scott 3/8/1992Kelsey Fowler 8/10/1994Elise Kelley 2/5/1995Dainton Bailey 11/7/1997Kevin Martin 11/3/1998Preston Cole 12/17/1998Maximilian Wilson 12/1/2000Annabella Murphy 12/3/2000Wilson Hawkins 9/18/1940Adrian Farrell 12/6/1942 Thank you, please let me know if you need some extra information. Engineering & Technology Computer Science OOP 244 Share QuestionEmailCopy link Comments (0)