Question: Consider the program specification: If the input is an ordered pair of numbers, ( x , y ) , a message is output stating whether
Consider the program specification:
If the input is an ordered pair of numbers, x y a message is output stating whether they are in ascending order, descending order, or equal. If the input is other than an ordered pair of numbers, an error message is output.
and associated equivalence classes:
x y xy V
x y xy V
input is other than an ordered
pair of numbers I
Indicate whether or not the underlying wishful assumption of partition testing would hold for
each of the following program designs. Circle "yes" or no as appropriate for each. To com
pensate for random guessing, your score in points will be times the number of correct
minus incorrect answers, or whichever is greater. Therefore, if you are not more than
sure of your answer, consider skipping the item.
a if input is other than an ordered pair of numbers yes no
then outputinvalid input
else
if xy OR x is odd then outputdescending order
else
outputequal
endifelse
endifelse
endifelse
b if input is other than an ordered pair of numbers yes no
then outputinvalid output
else
if xy then outputdescending order
endifelse
endifelse
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
