Question: Create a class specification (DogHealth.h) & class implementation (DogHealth.cpp) file for a class named DogHealth. The purpose of the DogHealth class is to allow a

Create a class specification (DogHealth.h) & class implementation (DogHealth.cpp) file for a class named DogHealth. The purpose of the DogHealth class is to allow a user to enter in information about a dog and then get statistics based on that information. DogHealth should have the following attributes . The dog's name (string) The dog's age (integer) A floating point array holding 12 months of the dog's weight in pounds (one weight entered per month) An integer array holding 12 months of the dog's resting heart rate in beats per minute (one resting heart rate per month) DogHealper should have the following member functions: Constructor- should ask the user for the name, age, and all the data for the two arrays and enter in the information in to the attributes. printDogHealth - has no parameters or return data and should just print out all the information in the attributes . printWeightStatistics should create a NEW ArrayHelper object sending the weight array & number of elements in the array to this object. Should then call the getMax, getMin, and getAvg functions of the ArrayHelper object in order to print o month that the dog had the highest weight and the weight amount o month that the dog had the lowest weight and the weight amount o the average weight of all the months printHeartRateStatistics - should create a NEW ArrayHelper object sending the heartrate array & number of elements in the array to this object. Should then call the getMax, getMin, and getAvg functions of the ArrayHelper object in order to print: o o o month that the dog had the highest resting heart rate and the resting heart rate amount month that the dog had the lowest resting heart rate and the resting heart rate amount the average resting heart rate of all the months
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
