Question: #include Assume now you have an integer array with any possible size, named array [ ] . Now you need to create few functions with

#include Assume now you have an integer array with any possible size, named array[]. Now you need to create few functions with array[] as one of the arguments
which can perform the following computations as stated below:
identify_max(): Identify and return the highest value (max).
identify_min(): Identify and return the lowest value (min).
calculate_mean(): Calculate the average value (mean) of array and return in floating point value.
sorting_median(): Sort the array in ascending or descending order according to user instructions (e.g.1= sort in ascending order, 2= sort in
descending order) and determine the median value in floating point. The sorted array will also be part of the arguments (due to a function only can
return one value at one time).
Hints: the option of ascending/descending can be passed as one of the function arguments.
array_arithmetic(): By receiving an array as the input, this function computes addition and multiplication of all the array elements. The array will not
return any value but the result of addition and multiplication will be written to the arguments (due to a function only can return one value at one
time).
Hints: Instead of calling a function which passing an argument by value, you need to call a function which passing an argument by pointer or
reference.
 #include Assume now you have an integer array with any possible

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!