[solved] – Question 72084
Write a C++ program to place random integers, whose values range from -100 to +100, into a
40 element integer array. The user should be able to choose how many values to place into the array.
Have main() output the values. Now call a function to calculate the lists mean average value (in floating point).
This same function should also find the two values in the array whose value is the closest to its average.
Main() should output the average and the two array values closest to the average.
Note: It is possible that the two values closest to the average may be identical.
Expert Answer
OR

