Question
People class in c++ Create a People class with the following features: Each People object has a statically allocated array of Human objects. Size attribute
People class in c++ Create a People class with the following features: Each People object has a statically allocated array of Human objects. Size attribute representing the size of the array. Position attribute representing the next free position in the array Default constructor with no arguments. Search method that takes a string argument and returns bool. This method returns true when the string passed matches the name of any Humans in the list. In other words, pass the name of a Human, search the list of humans for one with that name. If found, return true. Else return false Insert method. This accepts a Human object as an argument. If the list of Humans is not full, insert this into the list then increment position. If the list is full, throw an exception. You do not need to implement destructor or overloaded operators. You may not use anything from the STL, vectors, or linked lists. The search and insert methods must be your own.
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