Question: C++ Program Specification: Create a program that allows the user to create a person and assign values to the following attributes: first name, last name,

C++ Program Specification: Create a program that allows the user to create a person and assign values to the following attributes: first name, last name, address, height, date of birth and gender. 

Design a personType class with the following attributes (variables), and behaviors (methods/functions).

Private

Variables

string fName;

string lName;

string address:

double height (inches)

string DOB

char: gender

Public

functions

setters for all of your data members (variables)

getters for all of your data members

print. This function will print "All of the persons' information".

equals which takes another personType object as a parameter and compares all its members. Returns true is identical.

Create a driver program that creates 5 different people. After creating the 5 different people, neatly print them.

Demonstrate the equals method by comparing and showing the result where two people are not the same and another where two people are the same.

Submission requirements:

1. A screenshot showing the print results of all 5 people. You must use the print method for each person.

2. .cpp and .h files (driver.cpp, personType.cpp, personType.h)

3. UML ppt Example:

If possible to be done on linux terminal

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!