Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Class called MyMathClass The class handles bound type parameters that extend the API Number class. See Bound for Type Parameters(around pg 793 in

Create a Class called MyMathClass

The class handles bound type parameters that extend the API Number class. See Bound for Type Parameters(around pg 793 in text)

average method

takes in a type parameter ArrayList

returns a double representing the average of the ArrayList elements

standardDeviation method

that takes in a type parameter ArrayList

returns a double representing the Standard Deviation of the ArrayList elements.

Standard Deviation Equation

Sqrt of the sum of the difference between each element in the array and the average of all elements in the array.

Standard Deviation = Sqrt( (Sum_i=1_to_N(element i - average)) / N) where N is the number of elements in the array.

Create a Class classed MyMathClassTester

Creates three ArrayLists, one for each type of numeric Object Type(Integer, Double and Long)(you must use an L fpr any number literal to a Long before passing it to the List)(example 2348575758390L)

Add at least three appropriate number to each ArrayList

Create a MyMathClass object for each type (Integer, Double and Long)

Call the Standard Deviation method for each MyMathClass object and display the results.

What happens if you create a MyMathClass object with a String type parameter?

Add the answer to the above question as comments at the bottom of your MyMathClassTester

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Address an envelope properly.

Answered: 1 week ago

Question

Discuss guidelines for ethical business communication.

Answered: 1 week ago