Question

Q-5: Using if...elseif else structure, write a program for the following grading policy of a University. A (Excellent) = 90 to 100. B+ (Very Good) = 85 to <90. B

(Good) = 80 to <85. Fail = <80 Note: If there is a negative value as an input, it will show an error message“ negative value is not allowed ".

Fig: 1

Fig: 2

Fig: 3