Professional Documents
Culture Documents
Student has scored a total number lower than 90 percent on the first three assignments
AND exams AND received a score no lower than 70 percent on the fourth assignment
THEN receive an initial grade of A for the course.
Student has scored a total number lower than 90 percent but no lower than 80 percent
on the first three assignments AND exams AND received a score number lower than 70
percent on the fourth assignment THEN receive an initial grade of B for the course.
Student has scored a total number lower than 80 percent but no lower than 70 percent
on the first three assignments AND exams AND received a score no lower than 70
percent on the fourth assignment THEN receive an initial grade of C..
Student has scored a total number lower than 70 percent but no lower than 60 percent
on the first three assignments AND exams AND received a score no lower than 70
percent on the fourth assignment THEN receive an initial grade of D.
Student has scored a total number lower than 60 percent on the first three assignments
AND exams AND received a score lower than 70 percent on the fourth assignment
THEN receive and final grade of F.
The student’s final course grade will be the same as his or her initial course grade IF no
more than three class periods during the semester were missed. OTHERWISE, the
student’s final course grade will be one letter grade lower than his or her initial course
grade (for example, an A will become a B)
This statement are creates complex decision which can become more complex as more
clauses are added to in course grading policy. DFD is not a suitable tool for such a level
of detail. A decision table is a particularly used for such some decision rules.
A decision table is a matrix of rows and columns. The table is divided into 4 parts as
shown in the following figure. The left hand parts denote possible conditions and
actions. The right hand parts define the rules. Condition is a possible state of an entity.
As conditions vary, they are also called decision variables. An alternative step or
procedure that an individual takes or follows when confronted with a condition is called
an action. A rule defines an action to be, taken corresponding to a defined combination
of conditions.
Decision table for the above stated course grading policy or statement is given in the
following figure:
Applying these rules, the decision table for the grading policy can be created as in
figure below. The rules have been given serial numbers 1 to 8. Rules 1 and 5 have
been marked to grading loopholes that could be used against the instructor. The
instructor would need to determine how to handle those rules.To further refine this table,
rule 4 and 8 can be combined, as the action is determined irrespectively.
IMPLIMENTATION.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Grade B X X
Grade C
X X
Grade D X X
Grade F X X X X X X X X X X X X X
NOT APPLICABLE/
NO ACTION.
CONSOLIDATED DECISION TABLE.
CONDITIONS. RULES
1 2 3 4 5 6 7 8
(1) (2) (5) (6) (9) (10) (13)
C1: A A B B C C D E
L
C2: R R R R R R R S
C3: P T P T P T P E
ACTION.
Grade A X
Grade B X X
Grade C X X
Grade D X X
Grade F X
NOT APPLICABLE/
NO ACTION.
NUMBER OF ABSENCES
GRADING EXAM OR
3ASSIGNMENT<100&> YES YES
90 ASSIGNMENT 4TH NUMBER OF
&>70 GRADE A
ABSENTEES >3
NO
GRADE B FINISHED
NO
GRADE C FINISHED
NO
GRADE D FINISHED
YES YES
< 69 OR >60 NUMBER OF
GRADE D
ASSIGNMENT4TH >70 ABSENTEES >3
F / FAILURE FINISHED
YES
<59 ASSIGNMENT 4TH
>70 F /FAILURE
NO
F /FAILURE FINISHED