CS-304 Software Engg.: Today's Topics Structure Charts Decision Trees Decision Tables
CS-304 Software Engg.: Today's Topics Structure Charts Decision Trees Decision Tables
Today’s Topics
Structure Charts
Decision Trees
Decision Tables
Jump - An arrow is shown pointing inside the module to depict that the control will
jump in the middle of the sub-module.
Structure Charts
Loop - A curved arrow represents loop in the module. All sub-modules covered by loop
repeat execution of module.
Data flow - A directed arrow with empty circle at the end represents data flow.
Structure Charts
Control flow - A directed arrow with filled circle at the end represents control flow.
Decision Tree
A decision tree gives a graphic view of the processing logic involved in decision making
and the corresponding actions taken. The edges of a decision tree represent conditions
and the leaf nodes represent the actions to be performed depending on the outcome of
testing the condition.
Example: -
Consider Library Membership Automation Software (LMS) where it should support the
following three options:
New member
Renewal
Cancel membership
Decision Tables
A Decision table represents conditions and the respective actions to be taken to address
them, in a structured tabular format.
It is a powerful tool to debug and prevent errors. It helps group similar information into
a single table and then by combining tables it delivers easy and convenient decision-
making.
Creating Decision Table
To create the decision table, the developer must follow basic four steps:
Identify all possible conditions to be addressed
Determine actions for all identified conditions
Create Maximum possible rules
Define action for each rule
From the above table we can easily understand that, if the valid selection condition is false
then the action taken for this condition is 'display error message'. Similarly, the actions
taken for other conditions can be inferred from the table.