Question
Hy I need to do this program in C++ language and I need to submit this today. Human class Create a Human class with the
Hy I need to do this program in C++ language and I need to submit this today.
Human class
Create a Human class with the following features:
- Each Human needs a name, an age, and some phrase that they say.
- Each Human needs appropriate getters and setters for all attributes.
- For every interaction with this human, increment the age by 1 year.
- Default constructor with no arguments.
- Constructor that takes name, age, and phrase arguments.
Human Source Code
The Human class must to be defined in a header file with no implementation. Additionally, create an implementation file with all of the Human implementation code.
See the provided Die class example for an example of this format.
Driver
Create a driver to demonstrate all of the features of your Human class. The driver is the only class with main().
The driver must create a dynamic array of Human Objects of some user defined size. This requires prompting the user for a number of Humans to create.
Be sure to iterate through your array of Humans. Interact with every Human object. Demonstrate ALL features of the Human class.
Deliverables
Provide three source files for your project: Human.h, Human.cpp, and driver.cpp.
Provide screenshots of your driver output. (10% of score)
Submit only your own original work before the posted due date on Blackboard. Late or unoriginal work will not be accepted.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started