Need help with Software QA Testing
Given below is the Java code and the corresponding directed graph with nodes and edges. Calculate the Cyclomatic complexity of the code. (Show your calculations)
1. int value(int x, int y) {
2. int k = 20;
3. int z = 3 * x + y;
4. if (k < x + y) {
5. z++;
6. } else {
7. z--;
8. }
9. return (z % k);
}
T
L2-3
T
L5
T