Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Logidata+ Deductive Databases With Complex Objects Lncs 701

Authors: Paolo Atzeni

1st Edition

354056974X, 978-3540569749

More Books

Students also viewed these Databases questions

Question

x-3+1, x23 Let f(x) = -*+3, * Answered: 1 week ago

Answered: 1 week ago