Question: *** C++*** Mean Function In statistics, when the elements in a set are summed and divided by the total number of elements, it is called

*** C++***

Mean Function

In statistics, when the elements in a set are summed and divided by the total number of elements, it is called mean. Write a function that accepts as arguments the following:

  1. An array of integers
  2. An integer that indicates the number of elements in the array (for example 12)

The function should determine the mean of the array. This value should be returned as a double.

Demonstrate your pointer prowess by using pointer notation instead of array notation in this function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!