In: Computer Science
A mail order company gives 5% discount on all customer orders with advanced payment sent with the order. If a regular customer places an order of $5,000 or more also receives 5% discount. Otherwise no discount given.
(A) Write process specification for the mail order using Structured English
(B) To document the decision process for mail order using decision table,
(C) Document the decision process for mail order using decision tree
A) Process specification for the mail order
In other words, we can write it as:
B) Decision Table
Decision Tables are of the form:
1) Conditions with condition alternatives
2) Possible actions are: 5 % discount and No discount
3) Total Number of rules will be: 2 x 2 = 4
4) Decision Table:
Condition Stub / Condition Entries | 1 | 2 | 3 | 4 |
---|---|---|---|---|
Advance payment | Yes | Yes | No | No |
Order >= 5000 | Yes | No | Yes | No |
Action Stub / Action Entries | ||||
5 % discount | X | X | X | |
No discount | X |
C) Decision tree
The ellipse represent the conditions and the rectangle represent the actions. The arrow headings are the possible entries of the conditions.
For any further details, you may ask in the comment section.