answersLogoWhite

0

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);

}

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

BeauBeau
You're doing better than you think!
Chat with Beau
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa

Add your answer:

Earn +20 pts
Q: C program to find weighted arithmetic mean?
Write your answer...
Submit
Still have questions?
magnify glass
imp