2Precision Tools System Precision Tools System: Precision Tools sells a line of high-quality woodworking tools. When customers place orders on the company’s Web site, the system checks to see if the items are in stock, issues a status message to the customer, and generates a shipping order to the warehouse, which fills the order. When the order is shipped, the customer is billed. The system also produces various reports.
5Modeling Logic with Decision Tables Procedure for Creating Decision TablesName the condition and the values that each condition can assume.Name all possible actions that can occur.List all possible rules.Define the actions for each rule.Simplify the table.2
6Q1: Create a decision table- Students Campus Burglar Alarm When a burglar alarm sounds, if it is in one of students’ houses where alarm sounds every week, ignore it. Otherwise have a look outside and if the house looks not broken into and there is nobody moving inside it, ignore the alarm. Otherwise call police.List the resulting rules.Ask questions from the analyst for clarification
7A1: Decision Table – Students Campus Burglar Alarm Rule StubRule 1Rule 2Rule 3Rule 4Condition StubOne of those housesYNSuspicious activityAction StubIgnoreXCall Police
8A1: Simplified Decision Table – Students Campus Burglar Alarm Rule StubRule 1Rule 2Rule 3Condition StubOne of those housesYNSuspicious activity-Action StubIgnoreXCall Police
9A1: Resulting Rules- Students Campus Burglar Alarm • Rule 1: if one of those houses then ignore• Rule 2: if not one of those houses and suspicious activity then call police• Rule 3: if not one of those houses and not suspicious activity then ignoreNote: rule 2 will work just as well if skip the first check:• Rule 2: if not suspicious activity then ignore