Question: Modify the Analyzer class to make it a superclas. Change the analyze method to make a pure virtual function. Although Analyzer has a virtual function,
Modify the Analyzer class to make it a superclas. Change the analyze method to make a pure
virtual function. Although Analyzer has a virtual function, the destructor does not need to be
virtual since the Analyzer class owns the integer array; subclasses will not own the array. Change
the values and size variables from private to protected. Developer PowerShel
Create a class called DuplicatesAnalyser that subclasses Analyzer. This class will scan through
the data and determine which values appear more than once. Add a constructor that takes an
integer array and its size. Implement the analyze method to count the values that are
duplicated; use the override keyword appropriately. Return a std::string with explanatory text and
the count of duplicates. Only some of the values will be duplicated, others will not exist at all or
appear only once.
Create a second class called MissingAnalyzer that subclasses Analyzer. This class will scan
through the data and determine which values to not appear. Implement the analyze method to
count the missing values; use the override keyword appropriately. Return a std::string with the
count.
Create a third class called StatisticsAnalyzer which performs the same statistical analysis of the
data as the Analyzer class did in Part This includes the minimum, maximum, and mean
values. Implement this analysis in the analyze method; use the override keyword appropriately.
Use these function and class headers:
Example output:
The minimum value is
The maximum value is
The mean value is
There were duplicated values
There were missing values
the pictures below include the code I have so far.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
