Grades are assigned on the standard 90, 80, 70, 60 scale. You are to write an algorithm which will receive a student name and a percentage grade and display the letter grade to be awarded

2 answers

printf "%d gets a %s",$score,("F"x6,qw(D C B A))[int($score-1)/10];
start
input mark
if mark is 75 to 100
display a
if mark is 50 to 59
display b
if mark is 0 to 19
display u
end