Question: Write a C program(using functions) which reads a size and a vector(from keyboard) and returns the minimum value and how many elements from vector are
Write a C program(using functions) which reads a size and a vector(from keyboard) and returns the minimum value and how many elements from vector are less or equal than the average of all elements.
So if input size 6 and a vector 17 12 11 2 3 1 the output should be MINIMUM IS 1......AND 3 (2 3 1) ELEMENTS ARE LESS OR EQUAL THAN THE AVERAGE (7,66 )
prototype of functions
int count (int v[ ], int n); (for the function which counts how many elements are less or equal to the average)
int minim(int v[ ], int n); (for the function which counts the minimum value from vector)
Test your program before answering. I will report each wrong answer to chegg team which will lead to your account being closed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
