Page 116 - KEC Khaitan C8.5 Flipbook
P. 116
Code: Flow:
ENTER SCORE
ASSIGN GRADE
IS SCORE >= 85?
NO
IS SCORE >= 75?
NO
IS SCORE >= 65?
YES
NO
YES
IS SCORE >= 55?
YES
YES NO
GRADE A GRADE B GRADE C GRADE D GRADE E
Bonus Feature:
Validation: Add input validation to ensure the user enters numeric values only.
Custom Messages: Include messages for exceptional performance (e.g., “Excellent Work!”
for Grade A).
Looping Feature: Allow the program to calculate grades for multiple students without
restarting.
114 Premium Edition-VIII

