Question: Software mesurment Consider the code of the method getDescription(int a, int b, int c) which implements the specification of the first question in Assignment 1.

Software mesurment Software mesurment Consider the code of the method getDescription(int a, int b,

Consider the code of the method getDescription(int a, int b, int c) which implements the specification of the first question in Assignment 1. The method has three parameters: a, b, and c. a. Draw a control flow graph for the program and clearly label each node to show its correspondence to a statement. b. 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? c. Develop a set of test cases to achieve full decision coverage. For each test case, you must provide the input values and the expected output in addition to the covered path. Fill the following table: Test Case Input Identifier Values Expected Actual Outputs Outputs Test Case Path Covered Result (Pass/ Fail) 1 public static String getDescription(int a, int b, int c){ 2 boolean c1, c2, c3; 3 String rs = ""; 4 5 5 c1 = (1

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!