Question

Numerical Methods (Lab.)

GENG 300

Fall 2023

كلية الهندسة

College of Engineering

جامعة قطر QATAR UNIVERSITY

A4-1. 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".

Execute the program and display the results, whenever the grade is 90, -89, 85, and 79

Question image 1