Quote:
i have no idea how to do my homework , i'm beginner in programing :(
Well, we aren't going to do it for you - that would defeat the whole purpose of homework, and you wouldn't get any better!
So, sit down and get started with the bits you do know how to do!
You have a set of figures, then you get from somewhere - I have no idea where - so start by reading those and storing them somewhere. You know how to do that bit, I assume?
After that, it's not really complex, these are basic statistic functions.
For example, the first: Arithmetic mean of the gain. Gain is presumably in the data, or you need to process the data to calculate the gain - again, I have no idea what your data is, so you need to look at that.
Once you have the "gain values" arithmetic mean is simple: sum(values) / count(values)
So if you have three values 1, 3, 5 then sum(values) / count(values) == (1 + 3 + 5) / 3 == 9 / 3 == 3
That's simple to code, yes?
Give that a try, see how far you get, and then show me what you have and we'll move on. OK?