Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Define a class named Family in a header file named: family.h This file acts as a

ID: 3862486 • Letter: D

Question

Define a class named Family in a header file named: family.h This file acts as a prototype. 2. Create the implementation file family.cpp a. The class will have the following members 1. Family name 2. Parent (array of 2) a. First Name b. Last Name c. Age 3. Children (array of 10) a. First Name b. Last Name c. Age b. The class will be able to add parents or children c. The class will be able to return information on parents and children. 3. Create the program lab_family.cpp which uses the class Family to Implement the following a. The program will allow the user to 1. Add families a. With one or two parents b. With zero or more children 2. Delete Families search by last name (should use the same search function from item 3 below. 3. Display Families searching by last name 4. Display a list of all families 4. On exit print the following text to the screen; “So long from the family!” where is the first family in the list (if the list is empty just print “Bye Bye”). Here is my header file. *****Family.h***** #pragma once #ifndef family_h #define family_h #endif struct person { char FN[30]; char LN[30]; int age; }; class Family { private: char name[30]; person parent[2]; person children[10]; public: void setName(char* n[30]); char * getName(); void setParent(char FN[], char LN[], int, int); void setChildren(char FN[], char LN[], int, int); };

Explanation / Answer

******************Define a class named Family in a header file name Family.h*****************

******************Define a class named Family in a header file name Family.cpp*****************

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote