Number_system

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ogram, decision tables a particularly useful. In these cases, decision tables are preferred to flowcharts. Most decision tables have six parts. The basic format of a decision table is shown in Figure 11.12. The first p< of a decision table is "Table Heading" that contains the name and/or number of the table. For some large applications, two or more decision tables may be used in the analysis part of program development. The second part of the table, known as "Condition Stub", describes the conditions that could exist in the program logic. Thus the contents of condition stub correspond to the conditions contained in the decision symbols of a flowchart "Action stub", the third part of the decision table, contains the action statements. These statements correspond to the statements located in non-decision symbols of a flowchart. While the condition statements reveal the possible states of the input data, the action statements describe the possible actions of the computer system. The right hand side of the decision table contains the rule numbers (part 4), the actual conditions (part 5), and the actions taken by the computer (part 6). The condition entries correspond to the paths leading out from decision symbols. Table Heading Decision Rules Condition Stub Condition Entries Action Stub Action Entries Figure 11.12. Format of a decision table. The steps to be followed for constructing a decision table are as follows: 1. Properly define the problem that has to be solved by computer. 2. List out all the conditions to be tested in the problem. 3. List out the corresponding actions that should be taken with each combination of conditions. 4. Form a decision table using the two lists. Sample Decision Table A decision table for the problem of Example 11.6 that was charted in Figure 11.9 is shown in Figure 11.13. In this table, each rule number is a given condition followed by a specific action to be taken by the computer. The six rule numbers, the six actual conditions, and the associated actions taken by the computer system are discussed...
View Full Document

This document was uploaded on 04/07/2014.

Ask a homework question - tutors are online