Question: int limit = 1 0 ; input y ; input x ; for ( int i = 1 ; i limit ; i + +

int limit =10;
input y;
input x;
for (int i=1;i limit ; i++)
;
{:y=y+i2;}
print ("x=",x,y=,y;
Draw a Control Flow Graph to compute the Cyclomatic complexity of the above program. (3 marks)
Q7: Consider the following scenario: (3.5 marks)
Consider a function implementing the following policy for awarding merit cum means scholarship to the students. No students would be considered for the scholarship if he is in receipt of any other scholarship or if he is having a backlog in any subject. Further, the parental income must be less than 100K per year and the student's current CGPA must be at least 7. However, a student with parental income upto 200K may be awarded the scholarship, if his/her current CGPA is at least 8. At least how many test cases are required for conditional testing? [You may need to create a decision table for answering the above scenerio]
 int limit =10; input y; input x; for (int i=1;i limit

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!