Type your answer here...
#include
#include
#define NULL 0
FILE*scores;
main()
{
int scores[50];
int numberOfScores = 0;
/*Function Definitions*/
void readFile (int a[], &int);
void calculateMean (int a[]);
void sortArray (int a[], int);
void calculateMedian (int a[]);
void calculateMode (int a[]);
}
/*Read the file with scores*/
void readFile (int a[], &numberOfScores);
{
int flag = TRUE;
scoresFile = fopen("scores.txt","r");
if(scoresFile multi[k][0]
{
multi[k][1] = multi[k][1] + 1;
}
}
}
higher = multi[0][1];
for(j=0; j<50; j++)
{
if(higher , multi[j][1])
higher= multi[j][1]l
}
printf("Mode of the scores: %d", higher);
}
Chat with our AI personalities
There is. Arithmetic mean is simple average of numbers not weighted by anything. However in EV, the numbers are weighted by their probability
The difference between arithmetic and geometric mean you can find in the following link: "Calculation of the geometric mean of two numbers".
The weighted arithmetic mean is used, if one wants to combine average values from samples of the same population with different sample sizes: : The weights wi represent the bounds of the partial sample. In other applications they represent a measure for the reliability of the influence upon the mean by respective values. rhinostar
Any number between 21 and 14 can be an arithmetic mean.
A weighted mean is when some values contribute more than others. In order to calculate weighted mean multiply each weight by its value, add those and then divide by the sum of the weights.