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

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

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

# CS608 Assignment No 02 Solution & Discussion Due Date Jan 15, 2018

Assignment No.  2
Semester: Fall 2017

CS608 – Software Verification and Validation

Total Marks: 20

Due Date: 15-01-2018

Instructions

Please read the following instructions carefully before submitting assignment:

It should be clear that your assignment will not get any credit if:

o        Assignment is submitted after due date.

o        Submitted assignment does not open or file is corrupt.

o        Assignment is copied (From internet/students).

Objectives:

To enable students to practically implement the concepts of Control Flow Testing. Moreover to familiarize students with  the concepts of:

• Unit Testing
• Integration testing
• System testing
• Acceptance testing
• Regression testing

Assignment Submission Instructions

You have to submit only.doc/ docx file on the Assignments interface of CS608 at VULMS. Assignment submitted in any other format will not be accepted and will be graded zero marks.

Question No.1

15    Marks

Following is a program that will print the prime numbers

Input: user enters number 5

Output: prime numbers should be displayed

ANSWER

void main()

{

int number;

cout "Enter number: ";

cin >> number;

for(int i = 2; i <= number; i++)

{

int prime = 1;

for(int j = 2; j <= i/2; j++)

{

if ((i%j) == 0)

{

prime = 0;

break;

}

}

if (prime == 1)

{

cout setw(10) i endl;

}

}

}

Understand the control flow of given program and complete the following tasks.

A)    Draw the control flow graph of given program code.

B)    Develop the Test Cases to Satisfy Statement Testing Coverage for given code when user enter number 5. Use the following table format.

 PATHS PROCESS LINKS TEST CASES INPUT OUTPUT

Note: number of columns in “PROCESS LINKS “may be increased according to the number of statements.

C)    Develop the Test Cases to Satisfy Branch Testing Coverage for given code.

D)

 PATHS DECISIONS TEST CASES INPUT OUTPUT

Question No. 2                                                                                                                                            5 Marks2

Even there are some limitations in unit testing but it is still used in software development life cycle. Describe the main reason for using the unit testing in SDLC.

Deadline:

The deadline to submit your assignment solution is 15 January 2018. Your assignment must be submitted within the due date through VULMS. No assignment will be accepted through email after the due date.

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

See Your Saved Posts Timeline

Views: 972

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

### Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

Discussed & be touched with this discussion. After discussion a perfect solution will come in a result at the end.

Note:-

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link

Click Here For Detail.

&

.•°How to Download past papers from study groups°•.

Please Click on the below link to see…

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

anyone???

plz koi to solution de do  aj extended day h

cs608 cs603 Assignment plz

Koi Allah banda solution upload ker de. plz

Solution

Attachments:

## Latest Activity

Charming HaDi liked +ıllıllı \$µǥąя ǥ€ɲɨµ\$ ıllıllı+'s discussion Fact
3 hours ago
3 hours ago
Charming HaDi liked + + + Haniya + + +'s discussion KUCH LOG
3 hours ago
3 hours ago
3 hours ago
3 hours ago
Charming HaDi liked + ! ! ! Ayesha ! +'s discussion subhan allah
3 hours ago
3 hours ago
3 hours ago

## Today Top Members

1

2

3

### + ! ! ! ! ! branded billi ! ! +

© 2020   Created by + M.Tariq Malik.   Powered by

.