Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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