-1
(b) Find the student with the highest score of the first test.
(c) Find the student with the highest overall average.
(d) Find the student with the lowest overall average.
#define MAX 50
struct {
int ra;
char nome[MAX];
float prova[3];
} aluno[5];
int main() {
int i;
int j;
float media, Mmedia, mmedia;
for (i = 0; i < 5; i++) {
printf("Determine o Nome do Aluno %d: ", i + 1);
scanf("%s", &aluno[i].nome);
printf("Determine a Matricula do Aluno %d: ", i + 1);
scanf("%i", &aluno[i].ra);
for (j = 0; j < 3; j++) {
printf("Determine a nota da %d Prova: ", j + 1);
scanf("%f", &aluno[i].prova[j]);
}
}
return 0;
}
Previous question (not duplicated): https://answall.com/q/307649/132
– Victor Stafusa