Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
15 views2 pages

Decision Table Example

The document presents a decision table for a program that determines the largest of three positive integers (x, y, z) within the range of 1 to 300. It outlines various conditions (c1 to c9) and their corresponding results (a1 to a5) based on the comparisons of the inputs. The table categorizes the inputs as valid or invalid and identifies which number is the largest or if the input is impossible.

Uploaded by

Deepanshu Tyagi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

Decision Table Example

The document presents a decision table for a program that determines the largest of three positive integers (x, y, z) within the range of 1 to 300. It outlines various conditions (c1 to c9) and their corresponding results (a1 to a5) based on the comparisons of the inputs. The table categorizes the inputs as valid or invalid and identifies which number is the largest or if the input is impossible.

Uploaded by

Deepanshu Tyagi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Below is the decision table of the program for determining the largest

amongst three numbers in which its input is a triple of positive integers


(x,y, and z) and values are from the interval [1, 300].
Table 1 : Decision Table of largest amongst three numbers :

Conditions R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 R14

c1: x > = 1? F T T T T T T T T T T T T T

c2: x <= 300? F T T T T T T T T T T T T

c3: y > = 1? F T T T T T T T T T T T

c4: y <= 300? F T T T T T T T T T T

c5: z > = 1? F T T T T T T T T T

c6: z <= 300? F T T T T T T T T

c7: x>y? T T T T F F F F

c8: y>z? T T F F T T F F

c9: z>x? T F T F T F T F
a1 : Invalid
X X X X X X
input

a2 : x is
X X
largest

a3 : y is
X X
largest

a4 : z is
X X
largest

a5 :
X X
Impossible

You might also like