Presentation is loading. Please wait.

Presentation is loading. Please wait.

Extra tutorials. Precision Tools System Precision Tools System: Precision Tools sells a line of high- quality woodworking tools. When customers place.

Similar presentations


Presentation on theme: "Extra tutorials. Precision Tools System Precision Tools System: Precision Tools sells a line of high- quality woodworking tools. When customers place."— Presentation transcript:

1 Extra tutorials

2 Precision Tools System Precision Tools System: Precision Tools sells a line of high- quality woodworking tools. When customers place orders on the companys 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. 2

3 (draw your context diagram) 3

4 Level-0 DFD 4

5 2 Modeling Logic with Decision Tables Procedure for Creating Decision Tables Name 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.

6 Q1: 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. 6

7 A1: Decision Table – Students Campus Burglar Alarm Rule Stub Rule 1Rule 2Rule 3Rule 4 Condition StubOne of those housesYYNN Suspicious activityYNYN Action StubIgnoreXXX Call PoliceX 7

8 A1: Simplified Decision Table – Students Campus Burglar Alarm Rule Stub Rule 1Rule 2Rule 3 Condition StubOne of those housesYNN Suspicious activity-YN Action StubIgnoreXX Call PoliceX 8

9 A1: 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 ignore Note: rule 2 will work just as well if skip the first check: Rule 2: if not suspicious activity then ignore 9


Download ppt "Extra tutorials. Precision Tools System Precision Tools System: Precision Tools sells a line of high- quality woodworking tools. When customers place."

Similar presentations


Ads by Google