Dado o nome de um estudante, com o respectivo número de matrícula e as três notas acima mencionadas, desenvolva um algoritmo para calcular a nota final e a classificação de cada estudante. A classificação é dada conforme a tabela abaixo: Nota Final Classificação [8,10] A [7,8] B [6,7] C [5,6] D [0,5] R English Given the name of a student, with its registration number and the three notes mentioned above, develop an algorithm to calculate the final grade and classification of each student. The classification is given as shown below: Note Final Rating [8,10] A [7,8] B [6,7] C [5,6] D [0,5] R
includeinclude include main() { float lab,trab,exmfim; int nalunos,n=0; printf("Digite o Numero de Alunos da Turma = "); scanf("%d",&nalunos); int naluno[nalunos],notfim[nalunos]; float medfim[nalunos]; while(n 5)&&(medfim[n]<=6)) notfim[n]=100;/*D*/ if((medfim[n]>6)&&(medfim[n]<=7)) notfim[n]=99;/*C*/ if((medfim[n]>7)&&(medfim[n]<=8)) notfim[n]=98;/*B*/ if(medfim[n]>8) notfim[n]=97;/*A*/ } n=0; while(n
0 comentários:
Postar um comentário