Help programs with functions "third year secondary school"

This is a discussion on Help programs with functions "third year secondary school" within the C Programming forums, part of the General Programming Boards category; Hi, i'm new to this forum.
I attend the third year of secondary school.
today the teacher explained the functions ...

Help programs with functions "third year secondary school"

Hi, i'm new to this forum.
I attend the third year of secondary school.today the teacher explained the functions but i didn't understand very well. kindly help me to carry out these programs in c. I use DevC++.

1- Calculate the sum and average of two vectors containing 5 integers. Compare the values ​​of the average viewing an appropriate message.
-Parameters of the average (sum, n_ele)
-Program with refunds

Where "sum" is the total of the values in the vector, and n is the number of values in the vector. The function returns an int. The definition is about 2-3 lines at most. I'm sure you've done enough math to figure out what they should be.