Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions

Question

Describe the cost constraint on financial reporting.

Answered: 1 week ago