In-Class Assignment: Decision Table
Build a decision table corresponding to the following policy that determines salesperson commission:
If a non-salaried employee sells an item that is neither standard nor bonus to someone other than a regular customer, he or she receives a 10 percent commission, unless the item costs more than $10,000, in which case the commission is 5 percent. For all salespeople, if a standard item is sold, or if any item is sold to a regular customer, no commission is given. If a salaried salesperson sells a bonus item, he or she receives a 5 percent commission, unless the item sells for more than $1,000, in which case he or she receives a flat $25 fee. If a nonsalaried salesperson sells a bonus item to someone other than a regular customer, he or she receives a 10 percent commission, unless the item costs more than $1,000, in which case he or she receives a flat $75 fee.
Tip: Do it in two phases. In the first phase, identify and list all the conditions and actions. Phrase them positively . In the second phase, translate each given statement into a rule.
Draw a dataflow diagram for which the above decision table is the process specification.