Question: Question 1: Consider the following pseudocode: 1. Void main ( ){ 2. 2.Float x,y; 3. Read(x); 4. Read(y); 5. If ((x==0) II (y>0)) 6. y=y/x;

 Question 1: Consider the following pseudocode: 1. Void main ( ){2. 2.Float x,y; 3. Read(x); 4. Read(y); 5. If ((x==0) II (y>0))6. y=y/x; 7. else x=y+2; 8. write(x); 9. write(y); 10. } Task

Question 1: Consider the following pseudocode: 1. Void main ( ){ 2. 2.Float x,y; 3. Read(x); 4. Read(y); 5. If ((x==0) II (y>0)) 6. y=y/x; 7. else x=y+2; 8. write(x); 9. write(y); 10. } Task 1: Create Control flow graph Task 2: Create at least 2 test cases to calculate Branch coverage. Task 3: Find McCabe's Cyclomatic Complexity using Graph Matrix. Question 2: Consider the following pseudocode: 1.PrintSum (int a, int b) \{ 2. int result =a+b; 3. if (result >0) 4. Printcol("Green", result); 5. else if(result v[mid]) low = mid +1; else return mid; \} return 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!