Answered step by step
Verified Expert Solution
Link Copied!

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:
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.
image text in transcribed

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

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

socialist egalitarianism which resulted in wage levelling;

Answered: 1 week ago

Question

soyuznye (all-Union, controlling enterprises directly from Moscow);

Answered: 1 week ago