Computer Science, asked by punamdubewad, 9 months ago

rick recently got admission at a business school the first first class he attended wad, economics and it was a refresher of concept of mean and medium mean is average of all numbers and median is the middle value when all numbers in data are sorted in case the number of elements are odd or when the no of element is even it is average of two middle element as homework rick was given a dataset with a large no of element he had to find subset of that database which would given the largest value of mean median

Answers

Answered by SahiliDessai1998
2

Explanation:

Median is the middle value of a set of data. To determine the median value in a sequence of numbers, the numbers must first be arranged in ascending order.

If there is an odd amount of numbers, the median value is the number that is in the middle, with the same amount of numbers below and above.

If there is an even amount of numbers in the list, the median is the average of the two middle values.

Answered by avnesh73022
7

Explanation:

Economics Class

Rick recently got admission at a business school. The first class he attended was Economics and it was a refresher of concepts like mean and median.

Mean is the average of all the numbers in the data and median is the middle value when all the numbers in the data are sorted in case the number of elements is odd or when the number of elements is even, it is the average of the two middle elements.

As homework, Rick was given a dataset with a large number of elements, he had to find a subset of that dataset which would give the largest value of the difference between mean and median (mean - median). Since it is a tedious task, Rick and you decide to develop a program that returns a subset of the original array such that the value of difference of mean and median is largest in it.

Input Specification:

input1: An integer value denoting the number of elements in the

array(dataset).

input2: An integer array representing the dataset.

Similar questions