Question: Description: You are to write a function that will have three parameters: an array of integers, the size of the array (int), and the average

Description: You are to write a function that will have three parameters: an array of integers, the size of the array (int), and the average of the numbers. The function should return -1 if there are more numbers below the average, 1 if there are more numbers above the average, and 0 if there are the same number above and below. You are also to write the main program that will declare and initialize the array, calculate the average, call your function, and output the result. For this project, you can just initialize a small array to a set of "random values of your choosing. The command to output in C++ has the form: cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
