Question: I have the following program which is in C. ****I had sent the same exercise before but there were 2 errors in the code and

I have the following program which is in C.

****I had sent the same exercise before but there were 2 errors in the code and I corrected them now****

int main() {

do { scanf ( "%d ", &a);

} while (a>6);

for (i = 0; i

b = i;

while (b>=0) {

c = 5;

do {

c-- ;

} while(c>b);

b-- ;

} }

return 0;

}

1)Draw the circuit complexity graph

2)Define the 4 value classes of the variable a so that you have complete loop coverage for the for.

3)For each of the above classes choose one test case. Complete the table below for each test case with the number of iterations that each iteration structure will execute. When the condition of a structure is never checked, then we write - (dash), otherwise if it is checked but its body is never executed, we write 0.

a = a = a = a =
for
while

do-while

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!