Question: I need to write a java code that does the following: -sum, difference, product, average, distance (absolute value of the difference), maximum, minimum the output
I need to write a java code that does the following:
-sum, difference, product, average, distance (absolute value of the difference), maximum, minimum
the output should look something like this:

The operations object created will be tested in Main.java file. The test should ask the user for two integers and print out the statistics using a method called printStats.
the code and umI should match:
45 22.50 Sum Average: Difference: Product: Distance: Maximum Minimum 500 25 20 Operations -firstNumber: int secondNumber: int +setFirstNumber(firstNumber: int): void +setSecondNumber(secondNumber: int):void + getSumO int + getAverage0 double +getDifference0: int +getProduct0: int +getDistance0: int +getMaximum0: int +getMinimumO: int +printStats0 void Main + main(args: Stringl) : void
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
