Sometime It is very difficult to prepare a flowchart based on many decision blocks or conditions as such flowchart becomes very complex to draw.
We may represent such kind of problem solutions in table form and such tables are known as Decision Table.
A Decision Table mainly consists of four parts:
§ Condition Entries
§ Action Entries
· It is known as Condition Stub
· Condition lists the basis for preparation of Decision Table.
· Conditions are actually representations of all forms of comparisons.
· Conditions mainly resemble the inputs through which analysis is performed.
· It is known as Action Stub.
· Actions list the actions to be taken along various program branches.
· Actions are sort of outputs of program.
· These lists the various columns that make the possible permutations of answer to the questions in the conditions.
· These list the columns corresponding to the answer for any particular combination of condition entry column.
Example of Decision Table for Allowing Credit Facility:
Components of Decision Table:
The Components of Decision Table are as follows:
§ Condition Statements: Statement which include the condition like Monthly Salary>10000
§ Condition Entries: Entries that complete the condition statement (Y or N)
§ Action Statements: Statements which gives the actions or output for conditions answers. Like Allow Credit Facility
§ Action Entries: Complete the action entries like (X)
§ Rules: Unique Combinations of conditions and actions.
§ Header: Title identifying the Table likes Allowing Credit Card Facilities.
§ Rule Identifiers: Identifying the rules of table like R1, R2 etc.
§ Conditions Identifiers: Identifying the conditions like C1, C2 etc.
§ Action Identifiers: Identifying the actions like A1, A2 etc.