Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#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:
identifymax: Identify and return the highest value max
identifymin: Identify and return the lowest value min
calculatemean: Calculate the average value mean of array and return in floating point value.
sortingmedian: Sort the array in ascending or descending order according to user instructions eg sort in ascending order, 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 ascendingdescending can be passed as one of the function arguments.
arrayarithmetic: 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started