Professional Documents
Culture Documents
Awards Ceremony
totalpossible=800
average:real;
total:real;
count:integer;
student:integer;
totalgained:real;
studentname:array[1..15] of string;
Form:string;
percentage:real;
start
student :=0;
Form:='5X';
total:=0;
count:=0;
clrscr;
print('Enter Student;s name, score and calculate the letter grade and final
percentage for 15 students');
For student:=1 to 15 do
start
input(studentname [student]);
input(totalgained);
percentage:=(totalgained/totalpossible)*100;
count:=count+ student;
total:=total+percentage;
Else if
Percentage >= 80
Grade = B
Else if
Grade = C
Else if
Grade = D
Else if
Percentage >= 50 then,
Grade = E
Else if
Grade = F
Endif
Endif
Endif
Endif
Endif
Endif
Endfor
Print classavg
End