Question: 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 marks)

 Part4 Consider the code of the method get_max which is used

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 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!