Question
use an input file MathInput.csv with instructions to perform math operation. Must use MathOp2 class for the calculations, all classes must be documented. I will
use an input file MathInput.csv with instructions to perform math operation. Must use MathOp2 class for the calculations, all classes must be documented. I will not accept any code that is not documented. Use exception handling to trap the errors.
* You can use Excel and enter the values below, one in each cell, then save the file as CSV
Here is a sample
2,+
6,+
9,-
10,*
=
4, /
5, *
6, -
=
The = indicates the end of the set (Must be in the first column)
The results should be something like this for the first set in the output file MathOutput.CSV
Add 2 total 2
Add 6 total 8
Subtract 9 total -1
Multiply 10 total -10
Number of elements = 4, Total = -10, Average = -2.5
********************************************
Divide 4 total 0
Multiply 5 total 0
Subtract 6 total -6
Number of elements=3, Total = -6, Average = -2
********************************************
Create a file with at least 10 sets
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started