.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....

We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

www.vustudents.ning.com

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search Here

# CS504 Assignment No 4 last date-13-feb-2017

 Assignment No.4   Semester Fall 2016 CS504 - Software Engineering-I Total Marks: 15       Due Date: 13/02/2017 Objective:   To learn and understand the basic concepts of Testing .     Instructions:     Please read the following instructions carefully before solving & submitting assignment: Assignment should be in your own wordings not copied from net, handouts or books.    It should be clear that your assignment will not get any credit (zero marks) if:     The assignment is submitted after due date. The submitted assignment does not open or file corrupt. The assignment is copied (from other student or copy from handouts or internet).     For any query about the assignment, please communicate at CS504@vu.edu.pk   You are advised to please upload the assignment in MS Word format only (other formats i.e. .pdf, images etc. will not be accepted.).

Question No 1:                                                                                                     15 Marks

Cyclomatic complexity (CC) is a technique, which is used to measure the source code complexity in a program during testing phase. It is calculated by developing a Control Flow Graph of the code that measures the number of linearly-independent paths through a program module. For the code given below:

void function(int x, int y)

{

for(int i=0; i<100; i++)

{

if(x != i)

print x-i;

Else

Print x*i;

}

while(x>0 and x != y)

{

if(x<y)

x++;

else

y++;

print x+y;

}

}

# a)    Draw the control flow graph (Check the handouts carefully)

b)    Calculate the Cyclomatic Complexity

c)     Identify all the possible traversable paths

Views: 10787

Attachments:

### Replies to This Discussion

i need complete solution

kai ha sab ko koi

koi solution post kyu ni kr rha me bht paershan hu plz koi meri help kre .

Any one have idea to complete this assignment

Duty se time nhi mila achanak dekha aaj last date hai

hahaha kabi khud b kr liya kro alveena

koi samajh hi nahin aa rahi

ye kai bat hoi ha ye fourm  dosre ki help k liy ha mje pe attack na kro mje solution do ai smj

farrukh plz assignment solution send kro ap ne kr li ho gi na

same here

Right or Wrong????????????? kindly tell me...........

**Complete solution**

Attachments:

ye sahi hai pura?

## Forum Categorizes

Job's & Careers (Latest Jobs)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

::::::::::: More Categorizes :::::::::::

## Latest Activity

31 minutes ago
Mady(;, aaiza and nainakhan joined + M.Tariq Malik's group

### CS605 Software Engineering-II

2 hours ago
2 hours ago
TALHA JABBAR and EshaAl Khan joined + M.Tariq Malik's group

### MTH302 Business Mathematics & Statistics

2 hours ago
Sher Ali Khan posted a discussion

### HEC suspended Institutions

4 hours ago
4 hours ago
Muhammad Fahad Khan replied to umar farooq khan's discussion ASSIGNMENT # 01 MGT 201 in the group MGT201 Financial Management
4 hours ago
Muhammad Fahad Khan replied to umar farooq khan's discussion ASSIGNMENT # 01 MGT 201 in the group MGT201 Financial Management
4 hours ago
EshaAl Khan liked silent's discussion Please think before rejection
5 hours ago
5 hours ago
5 hours ago
silent posted a discussion

5 hours ago

1

2

3