1 / 2100%
Decision Tree
Software Engineering
___
Notes
A decision tree gives a realistic see of the preparing rationale included in choice making
and the comparing activities taken. The edges of a choice tree speak to conditions and
the leaf hubs speak to the activities to be performed depending on the result of testing
the condition.
Illustration: -
Consider Library Participation Mechanization Computer program (LMS) where it ought
to bolster the taking after three choices:
New member
Renewal
Cancel membership
New member option-
Decision:
When the 'new member' alternative is chosen, the program inquires subtle elements
around the part just like the member's title, address, phone number etc.
Action:
In the event that legitimate data is entered at that point a participation record for the part
is
made and a charge is printed for the yearly participation charge furthermore the security
store payable.
Renewal option-
Decision:
In the event that the 'renewal' choice is chosen, the LMS inquires for the member's title
and his enrollment number to check whether he may be a substantial part or not.
Action:
On the off chance that the participation is substantial at that point participation expiry
date is upgraded and the yearly enrollment charge is printed, something else an blunder
message is shown.
Cancel membership option-
Decision:
On the off chance that the 'cancel membership' choice is chosen, at that point the
program inquires for member's title and his participation number.
Action:
The enrollment is cancelled, a cheque for the adjust sum due to the part is printed and
at last the enrollment record is erased from the database.
DECISION TABLE
A decision table is utilized to speak to the complex preparing rationale in a unthinkable
or a framework shape.
The upper lines of the table indicate the factors or conditions to be assessed. The lower
lines of the table indicate the activities to be taken when the comparing conditions are
fulfilled. A column in atable is called a run the show. A run the show suggests that in
the event that a condition is genuine, at that point the comparing activity is to be
executed
Students also viewed