Header Ads Widget

Responsive Advertisement

Module 04: Complex Conditions of Conditions

Complex Conditions of Conditions


1. How can we identify redundancy?

We can identify redundancy by:

i. Looking for two files that have the same actions.

ii. Then if all condition entries but one are exactly the same, there is redundancy between the two rules.


2. How can we prepare a problem definition?

To prepare a problem definition, we need to follow the steps below:

i. Prepare the truth table

ii. Prepare the Structure chart

iii. Write the Pseudocode

iv. Draw the Program flowchart

v. Test input data

vi. Test output data


3. Define the Keywords below.

Action entry: An indication of an action to be taken under a rule in a decision table.

Action stub: The list of actions in a decision table.

Condition entry: An indication of the status of a relevant condition for a rule in a decision table.

Condition stub: The list of condition in a decision table.

Contradiction: A situation in a decision table in which the same combination of condition lead to different actions.

Decision table: A tool for planning and documenting processing that involves complex combination of condition.

Program switch: A field in memory, having the value of true or false that is used to record a condition.

Redundancy: A situation in which more than one rule of a decision table may be applied for a given combination of conditions.

Rule: A part of decision table that indicates what actions are to be taken under a given combination of conditions.

Stub: That portion of a decision table that list all the condition to be examined and the various possible actions to be taken.


4. What are the advantages of decision table? Or, Why do we use decision table?

Decision tables are best suited to documenting complex decisions involving combinations of conditions.


5. What is a program flowchart?

A program flowcharts is a representation using standard outlines of processing step to be used to solved the problem.


6. What is postscript?

Postscript is a programming language designed to specify the layout of the printed page. Postscript printers and postscript display software use an interpreter to convert the page description into the displayed graphics.


7. How many components are there in a decision table?

There are four components in a decision table. They are as flows:

i. Condition STUB.

ii. Action STUB.

iii. Condition Entry

iv. Action Entries.


8. Make a pseudo code from below flowchart.

 


Pseudo Code

000- File- inquiry

Set old policy number to zero

Set error to ‘F’

Call 100- priming-read

Call 200-process-policyholder-record

Stop


9. Explain redundancy problems of decision table with example.

Redundancy exists when there are more rules than are necessary. We can identify redundancy  in table below.

For example, if any company want a list of policy numbers in ascending order for males aged 50 or over, then-

We look for two rules. There is redundancy between rule 2 and 4, and between rules 3 and 4. In the case of  rules 2 and 4 , we see ‘N’ for the first condition for both rules. But a ‘Y’ and ‘N’ for the second. Therefore  the second condition does not matter ;if  first condition is ‘N’. Regardless of  second condition is. We want to disregard the employee. In the case of rule 3 and 4 , we  see that  the first condition is immaterial as long as second condition is ‘N’.  Either rule 2 or rule 3  could apply, and that violates one of requirements of decision table: only one rule may apply in any situation. So rule 2, 3, 4 are redundancy for given table. 

Post a Comment

0 Comments