Answer:
NRMARKS = 5
total = 0
TextWindow.WriteLine("Enter the marks of five subjects::")
For i=1 to NRMARKS
TextWindow.WriteLine("Enter mark #"+i)
marks[i] = TextWindow.ReadNumber()
total = total + marks[i]
EndFor
average = total/NRMARKS
if average >= 90 then
grade = "A"
ElseIf average >= 80 Then
grade = "B"
ElseIf average >= 70 Then
grade = "C"
ElseIf average >= 60 Then
grade = "D"
Else
grade = "F"
EndIf
TextWindow.WriteLine("The Total marks is: "+ total + "/" + NRMARKS*100)
TextWindow.WriteLine("The Average marks is: " + average)
TextWindow.WriteLine("The Percentage is: " + average + "%")
TextWindow.WriteLine("The Grade is: "+grade)
Step-by-step explanation: