write a qbasic program to
display the result of a student based on the percentage entered.
Answers
Answered by
5
Answer:
Hope it's helpful
Thanks
PLS FOLLOW ME
Attachments:
Answered by
2
REM ' A Program to display the result of a student based on the percentage.'
CLS
PRINT "Enter your percentage"
INPUT P
IF P >= 80 AND P <= 100 THEN
PRINT "Excellent, You are passed with A Grade"
END IF
IF P >= 60 AND P < 80 THEN
PRINT "Keep it up, You are passed with B Grade"
END IF
IF P >= 40 AND P < 60 THEN
PRINT "Improvement needed, You are passed with C Grade"
END IF
IF P >= 28 AND P < 40 THEN
PRINT "Work Harder, You are passed with D Grade"
END IF
IF P >= 0 AND P < 28 THEN
PRINT "Sorry, You are failed"
END IF
SLEEP 5
END
Similar questions