Question: Please do this in c++ using VECTORS. Thank you! Dynamic Arrays of Objects Create a class for the city pound to keep a daily log
Dynamic Arrays of Objects Create a class for the city pound to keep a daily log of the stray animals that they have caught. The class will have the following data members: type of animal (character string), color (character string), gender (char), weight (int), and approximate age (int). Include get functions for each data member, set function(s), and a default constructor. In main, prompt for how many animals were caught that day and instantiate the array of animals using dynamic memory. Once the data for each animal has been input, print the list in ascending order by animal type. Print all data members. Don't forget to delete the memory when you are done with the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
