Decision Table Defined A decision table is a
Decision Table Defined: • A decision table is a table composed of rows and columns, separated into four separate quadrants.
Construction Rule for DT • 1. Identify the of conditions that may affect the decision. • 2. Identify the corresponding actions that may be taken in that decision situations. • Determine the no of columns ( 2 Raised to power n) • Fill Condition Entries ( Half Y and Half N) • Check the condition entries for inconsistancy, contradictions, redundancy • Use(X) for action being taken
Q 1 • A Mobile phone operator is running a promotional campaign. According to scheme the customer who make calls worth Rs. 1000 in any calendar month is allowed 50% on all subsequent calls made to its own network during that month. Construct DT depicting the functioning such program.
• Conditions: 1. Bal >=1000 2. Current Billing Month 3. On net calls Actions: 1. 50% Disc 2. No Disc
Decision Table Cond. Stub Bal>=1000 Y Y N N Current Bill Month Y Y N N Y Y Onnet Calls Y N N Y Y N X X X X Action Stub 50% Disc No Disc X
Q 2 • Vibrant traders is medium sized Co. the Co is in the process documenting payment procedures. The management has formulated following rule • All cheques should be signed by signitatories • Cheques up to Rs. 100000 may be signed by two mgrs. • Cheques up to Rs. 1. 0 Million should be signed by at least one director. • Cheques of more than Rs. 1. 0 Million should be signed by at least one director Prepare DT to assist in the verification of cheques.
Cond. Stub Chq upto 100000 Y Y N N Chq upto 1 Million Y Y N N Y Y Chq>1 Mill Y N N Y Y N Action Stub Sign Mgr A X Sign Mgrs B X X Sign Dir A X Sign Dir B X X
Conditions Actions Printer does not print Y Y N N A red light is flashing Y Y N N Printer is unrecognized Y N Y N Check the power cable X Check the printer-computer cable X X Ensure printer software is installed X X Check/replace ink X Check for paper jam X X X X
Types of Dec Tables • Limited Entry DT • Extended Entry DT • Mixed Entry DT
LEDT • In LEDT each condition is posed as a question requiring Y or N or immaterial answer and each action is taken or not. • All DT already discussed are LEDTs
EEDT • In EEDT the conditions and actions the exact cond & action being specified in entry quadrant. • MEDT – Limited and extended with one table
- Slides: 11