To create the abstract class AbstractDataCalc, you will need to define the abstract methods that will be implemented in the derived classes. These methods should include functions to calculate the average, minimum, and maximum of a row of data in the dataset.
For example, you might define the following abstract methods:
[ Refer first image for code ]
Next, you will need to create the derived classes AverageDataCalc, MaximumDataCalc, and MinimumDataCalc. These classes should inherit from AbstractDataCalc and implement the abstract methods defined in the parent class.
For example, in the AverageDataCalc class, you might implement the average() method like this:
[ Refer second image for code ]
You will need to implement similar logic for the min() and max() methods in the MinimumDataCalc and MaximumDataCalc classes, respectively.
Finally, you will need to modify the main() method to use these classes to calculate the average, minimum, and maximum of each row in the dataset. You can use the methods provided by the AbstractDataCalc class to do this.
For example, you might write the main() method like this:
[ Refer third image for code ]
This main() method creates instances of the AverageDataCalc, MaximumDataCalc, and MinimumDataCalc classes and uses them to calculate the average, minimum, and maximum values for each.
Learn more about abstract class:
https://brainly.com/question/29849218
#SPJ4