Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++2 screenshot of the output required put some comment on the code l AT&T 8:03 PM 68% Lab05 Lab05b.pdf Howard Community College CMSY-171/281 Lab 5b

C++2
screenshot of the output required
put some comment on the code
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
l AT&T 8:03 PM 68% Lab05 Lab05b.pdf Howard Community College CMSY-171/281 Lab 5b (35 points) Note this is considered a challenging lab ** You might want to check your design with your instructor BEFORE coding Define a class named Family in a header file named: family.h (S points) This file acts as a prototype. 1. 2. Create the implementation file family.cpp (15 points totall The class will have the following members a. Family name (5 points) 2. Parent (array of 2) (S points) a. b. c. First Name Last Name Age (you must validate the age is the proper data type. You can use the code from Lab 4) 3 Children (array of 10) (5 points) a. b. c. First Name Last Name Age (you must validate the age is the proper data type. You can use the code from Lab 4) b. c. The class will be able to add parents or children The class will be able to return information on parents and children. 3. Create the program Lab0Sb.cpp which uses the class Family to Implement the following a. The program will allow the user to (14 points total) 1 Add families a. With one or two parents (3 points) b. With zero or more children (3 points) Delete Families search by last name (should use the same search function from item 3 below. (1 point) 2. 3. Display Families searching by last name (2 points) 4 Display a list of all families (S points) 4. On exit print the following text to the screen; "So long from the cx0xo family!" where cXx0 is the first family in the list (if the list is empty just print "Bye Bye-(1 point) Dashboard Calendar To Do Notifications Inbox l AT&T 8:03 PM Lab05 Lab05b.pdfa Howard Community College CMSY-171/281 Bonus (10 Points Be able to store data in a file C:Itemp family.dat when the program exits (5 points) a. b. Be able to read the data from the file C:tempfamily.dat when theprogram starts. (5 points) Sample output: Dashboard Calendar To Do Notifications l AT&T 8:04 PM Lab05 Lab05b.pdf . Add a new fanily . Delete a fanily . Uiew an existing fanily record by last nane . Uiew entire list of fanilies. . Exit nter your selection 1 arent's first nane: John Parent's last name: Smith arent's age: 44 arent's first name Kor if done Joan arent's last name: Smith arent's age: 43 hild's first name Cor 'q if done Josh hild' s last nane: Smitlh hild's age: 9 hild's first name Cor' if done:q Add a new fanily . Delete a family . Uiew an existing fanily record by last nane . Uiew entire list of fanilies. . Exit nter your selection: 3 nter the fanily nane: Snith arent(s>: Name: John Smith Age44 Name: Joan Smith Age: 43 hildren: Name: Josh Snith Age: 9 . Add a new fanily . Delete a family Uiew an existing fanily record by last name . Uiew entire list of fanilies . Exit nter your selection: 4 anily 1 Dashboard Calendar To Do Notifications Inbox l AT&T 8:04 PM 68% Lab05 Lab05b.pdf Name: Joan Smith Age 43 hildren: Name Josh Smith Age: 9 1. Add a new fanily Delete a family . Uiew an existing fanily record by last nane View entire list of fanilies. . Exit nter your selection: 4 anily 1 arent s>: Name: John Smith Age 44 Name: Joan Smith Age: 43 Name: Josh Smith Age: 9 hildren: . Add a new fanily . Delete a family 3. Uiew an existing fanily record by last nane Uiew entire list of fanilies. . Exit nter your selection: Dashboard Calendar To Do Notifications Inbox

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions