Menu

(Solved) : Part4 Consider Code Method Getmax Used Find Maximum Three Integer Variables B C 6 Marks 1 Q35262143 . . .

Part4 Consider the code of the method get_max which is used to find the maximum of three integer variables: a, b, and c (6 maPart4 Consider the code of the method get_max which is used to find the maximum of three integer variables: a, b, and c (6 marks) 1 public static int get max (int a, int b, int e) int get max (int a, int b, int c) int maxa; if (bmax) max-b; if (cmax) return maxi Draw a control flow graph for the program and clearly label each node to show its correspondence to a statement. Calculate the program’s cyclomatic complexity. What does this mean in terms of the number of test cases to cover the code with respect to its branches? Develop a set of test cases to achieve full statement coverage. Develop a set of test cases to achieve full branch coverage. Develop a set of test cases to achieve full path coverage. a. b. c. d. e. For each test case, you must provide the input values and the output value. The method has three integer parameters: a, b, and c. Show transcribed image text

Expert Answer


Answer to Part4 Consider Code Method Getmax Used Find Maximum Three Integer Variables B C 6 Marks 1 Q35262143 . . .

OR