WHAT IS
DECISION TABLE? ? ?
A Decision table is a table of rows and columns, separated into
four quadrants and is designed to illustrate complex decision
rules.
- Condition Stub – upper left quadrant
- Rules Stub – upper right quadrant
- Action Stub – bottom left quadrant
- Entries Stub - bottom right quadran
Standard format used for presenting decision tables is as shown
below.
Importance of
Decision Tables
- Aids in the analysis of structured decisions
- Ensures completeness
- Checks for possible errors (impossible situations,
contradictions, and redundancies, etc.)
- Reduces the amount of condition testing that must be done
How To Develope
A Decision Table? ? ?
- Process requires the determination of the number of conditions
(inputs) that affect the decision.
- The set of possible actions (outputs) must likewise be
determined
- The number of rules is computed
- Each rule must specify one or more actions
Number of
Rules
- Each condition generally has two possible alternatives
(outcomes): Yes or No
- In more advanced tables, multiple outcomes for each condition
are permitted
- The total number of rules is equal to 2 no. of condi ti
ons
- Thus, if there are four conditions, therewill be sixteen
possible rules
Decision Table
For:-
- A month is to be represented as an integer. A valid
month is in the range of 1..12. An integer < 1 is invalid, or an
integer > 12 is invalid. Consider how this can be simplified or
reduced.
Let's have a look at how to create a decision table for the
above question and how to reduce the table format. here the step by
step process is shown with the help of tabular method.
The result obtained in the step-8 is the final decision table
obtained for the above question.
Decision Table For
:-
2. An employee is either hourly or salaried. An hourly employee
is paid by calculating an hourly wage and an hourly employee that
works more than 40 hours is paid overtime. An hourly employee that
works less than 40 hours must produce an absence report. A salaried
employee can work any number of hours.