Question: In C++ Write a function named isum that takes two arguments - an int array named x, followed by an int named n - and
In C++ Write a function named isum that takes two arguments - an int array named x, followed by an int named n - and returns an int value that is the sum of the first n elements in x. Example function prototype here:
int isum(int x[], int n);
also Write another function named avg that takes two arguments - an int array named x, followed by an int named n - and returns a double value equal to the average (arithmetic mean) of the first n elements in x. Example function prototype here:
double avg(int x[], int n);
Must be able to be put within this program skeleton:
Sample output:
#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
