For this quiz, you will write the following files: As you can expect, AbstractDataCalc is an abstract class, that Averag
Posted: Tue Jul 05, 2022 10:26 am
For this quiz, you will write the following files:
As you can expect, AbstractDataCalc is an abstract class, thatAverageDataCalc, MaximumDataCalc and MinimumDataCalc allinherit.
We will provide the following files to you:
Sample Input / Output
Given the following CSV file
The output of the provided main is:
Note: the extra line between Set results is optional and notgraded. All other spacing must be exact!
Specifications
You will need to implement the following methods at a minimum.You are free to add additional methods.
AbstractDataCalc
AverageDataCalc - TO DO
Extends AbstractDataCalc. Will implement the requiredconstructor and abstract methods only.
MaximumDataCalc - TO DO
Extends AbstractDataCalc. Will implement the requiredconstructor and abstract methods only.
MinimumDataCalc - TO DO
Extends AbstractDataCalc. Will implement the requiredconstructor and abstract methods only.
As with all coding exams, youget ONE submission attempt. Make sureyou have run multiple tests (hint: try building your own samplefiles, run calculations by hand to make sure it is workingright).
CSVReader.java
DataSet.java
Main.java
Sample Input/Output Given the following CSV file 1,2,3,4,5,6,7 10,20,30,40,50,60 10.1, 12.2,13.3, 11.1, 14.4, 15.5 The output of the provided main is: Dataset Results (Method: AVERAGE) Row 1: 4.0 Row 2: 35.0 Row 3: 12.8 Dataset Results (Method: MIN) Row 1: 1.0 Row 2: 10.0 Row 3: 10.1 Dataset Results (Method: MAX) Row 1: 7.0 Row 2: 60.0 Row 3: 15.5 Note: the extra line between Set results is optional and not graded. All other spacing must be exact!
As you can expect, AbstractDataCalc is an abstract class, thatAverageDataCalc, MaximumDataCalc and MinimumDataCalc allinherit.
We will provide the following files to you:
Sample Input / Output
Given the following CSV file
The output of the provided main is:
Note: the extra line between Set results is optional and notgraded. All other spacing must be exact!
Specifications
You will need to implement the following methods at a minimum.You are free to add additional methods.
AbstractDataCalc
AverageDataCalc - TO DO
Extends AbstractDataCalc. Will implement the requiredconstructor and abstract methods only.
MaximumDataCalc - TO DO
Extends AbstractDataCalc. Will implement the requiredconstructor and abstract methods only.
MinimumDataCalc - TO DO
Extends AbstractDataCalc. Will implement the requiredconstructor and abstract methods only.
As with all coding exams, youget ONE submission attempt. Make sureyou have run multiple tests (hint: try building your own samplefiles, run calculations by hand to make sure it is workingright).
CSVReader.java
DataSet.java
Main.java
Sample Input/Output Given the following CSV file 1,2,3,4,5,6,7 10,20,30,40,50,60 10.1, 12.2,13.3, 11.1, 14.4, 15.5 The output of the provided main is: Dataset Results (Method: AVERAGE) Row 1: 4.0 Row 2: 35.0 Row 3: 12.8 Dataset Results (Method: MIN) Row 1: 1.0 Row 2: 10.0 Row 3: 10.1 Dataset Results (Method: MAX) Row 1: 7.0 Row 2: 60.0 Row 3: 15.5 Note: the extra line between Set results is optional and not graded. All other spacing must be exact!