Thanks for your help!! Already solved the problem.
Type: Posts; User: lelao08
Thanks for your help!! Already solved the problem.
Thank you, now it outputs the value per ID!
But now my biggest problem is that the total amount of time calculated is being divided by the value of its ID and not by the number of times that ID...
It works but I want to apply that function to calculate the average in each ID and not the total value. For example average for ID 0001, 0002, 0003 and so on
Oh sorry.
double getAv (activitiesDone participants[500], int max)
{
int i;
double total, average;
total = 0;
Hi, yes I think so. I will put here what I have.
165381653916540
I am new to C programming and I have to print content from a file with an average already calculated. I will set the file here to show you how it is displayed. 16537
I want to calculate the average...
Yes, I think so. I will leave what I did initially.16531
I am new to C programming, especially in file I/O and I would like to know how can I sort my file content in descending order, according to the first numbers in each string (0001, 0002, ...).16530
I...