Hey everyone!
I read this pseudocode in a design book, and I found it bothersome, tell me if this is a good way to program, or if it's better to state the exact conditions of if statement execution:

The table we're working with is:
A = 90-100
B = 80-89
C = 70-79

Code:
IF percentage > 89 THEN 
        grade = A
ELSE
        IF  percentage > 79 THEN
                grade = B
        ELSE
                 IF percentage > 69 THEN
                           grade = C
                 ENDIF
        ENDIF
ENDIF
This is probably just style, but wouldnt it be a better idea to just explicitly state in your code what the exact parameters are? And BTW, I understand this would be written with ELSE IF's...the whitespace used was just taken form the book,

i.e.
Code:
IF percentage > 89 AND percentage <= 100 THEN
etc...
I was just wondering, thanks for the help -Chap