Question: Consider the following program int f(int x, int y) bool x neg; if (x > 0) { x neg = false else if(y0) { if
Consider the following program

int f(int x, int y) bool x neg; if (x > 0) { x neg = false else if(y0) { if (x neg) { else { else { return x + y; a) Draw the appropriate graphical representation of the program and illustrate the process of selecting paths. b) Use basis path testing to define test cases for this program. For each test case, indicate which basis path the test case corresponds to, in addition to the other information required for a test case. int f(int x, int y) bool x neg; if (x > 0) { x neg = false else if(y0) { if (x neg) { else { else { return x + y; a) Draw the appropriate graphical representation of the program and illustrate the process of selecting paths. b) Use basis path testing to define test cases for this program. For each test case, indicate which basis path the test case corresponds to, in addition to the other information required for a test case
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
