Question: Use the following function to answer the questions given below. double exponent (double a, int b) { // This function computes ab double result
Use the following function to answer the questions given below. double exponent (double a, int b) { // This function computes ab double result = 1.0; if (b < 0) { } H.2 a = 1.0 / a; b = b; while (b > 0) ( result = result * a; b = b -1; } return result; } 1. Draw the graph path and show the statements associated to the basic blocks. 2. Find the cyclomatic complexity and list all alternative paths that can be used for defect testing. 3. For each path identified in (2), derive test cases and test data that can be used for defect testing. Identify potential defects, if any.
Step by Step Solution
3.39 Rating (152 Votes )
There are 3 Steps involved in it
a Critically damped system The steadystate error for a critically damped system can be calculated us... View full answer
Get step-by-step solutions from verified subject matter experts
