Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions