Question: Please add methods in the statsLibrary class along with the findMean, findMedian, findMode, and findStandardDeviation methods for solving the combinations and permutations of the Array



Please add methods in the statsLibrary class along with the findMean, findMedian, findMode, and findStandardDeviation methods for solving the combinations and permutations of the Array List and adjust the tester class accordingly. Done in eclipse
olic class TestStatsLibrary \{ public static void main (String[] args) \{ StatsLibrary test = new StatsLibrary(); ArrayList someNumbers = new ArrayList \langle angle( ); someNumbers . add ( 1 ) ; someNumbers. add (2); someNumbers. add (3); someNumbers. add ( 4 ) ; someNumbers. add (4) ; someNumbers. add ( 4 ) ; double result = test.findMean (someNumbers); double median = test.findMedian (someNumbers); Integer mode = test.findMode (someNumbers); double stDev = test.findStandardDeviation(someNumbers); System.out.println ("The average is: " + result); System.out.println ("The median is: " + median); if (mode == null) \{ System.out.println("The mode is: null"); \} else \{ System.out.println("The mode is: + mode); b System.out.println ("The standard deviation is: " + stDev); 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
