I am looking at the truth table for following pseudocode.
IF year = 11 AND (grade < target OR target >7) THEN
SET revision_class TO true
END IF
I want to know whether the below truth table is correct or not. If it is correct, please explain me the row 5. Because it looks not correct to me:

Indeed, the last column has an error in the 5th row. That column should be exactly the same as the one-but-last column.
Another thing that is not right is the pseudo code: it is incomplete. If the
IFcondition is not true, then the variablerevision_classis undefined. To have this truth table, the pseudo code should start by setting that variable to false:Or more direct:
Normally you would first list the input booleans in the truth table, so I would put the column
Year = 11before theORone. As the last column really is a copy of the previous one, you might exclude it, but I will keep it in here:OR target > 7
(grade < target
OR target > 7)