0% found this document useful (0 votes)
20 views2 pages

Soft Engg

The document describes an experiment testing the boundary values of a program that finds the largest of three integers entered by the user between 100-200. The program was tested with 13 different test cases providing values within and outside the valid range for a, b, and c. The expected and actual outputs matched for all test cases, indicating the program passed boundary value analysis testing.

Uploaded by

Mayank Gaur
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Soft Engg

The document describes an experiment testing the boundary values of a program that finds the largest of three integers entered by the user between 100-200. The program was tested with 13 different test cases providing values within and outside the valid range for a, b, and c. The expected and actual outputs matched for all test cases, indicating the program passed boundary value analysis testing.

Uploaded by

Mayank Gaur
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

EXPERIMENT NO-1

Q) Perform boundary value analysis testing methods on the program which can find out the largest among three integers a,b,c within the range 100-200.

#include<iostream.h> #include<conio.h> void main() { int a,b,c; cout<<This program will tell you the largest of the three numbers you enter!; cout<<Enter the three numbers within the range [100,200] :\n; cin<<a<<b<<c; if((a<100||a>200)||(b<100||b>200)||(c<100||c>200)) { Cout<</n invalid input; Cout<</n enter no between 100-200; } else { If(a>b&&a>c) cout<<largest value is :<<a; else if(b>a&&b>c) cout<<largest value is :<<b; else cout<<largest value is :<<c; } getch(); }

Test log

Test case id 1 2 3 4 5 6 7 8 9 10 11 12 13

a 100 101 199 200 150 150 150 150 150 150 150 150 150

b 150 150 150 150 150 150 150 150 150 100 101 199 200

c 150 150 150 150 100 101 150 199 200 150 150 150 150

Expected output Largest value is 150 Largest value is 150 Largest value is 199 Largest value is 200 Largest value is 150 Largest value is 150 Largest value is 150 Largest value is 199 Largest value is 200 Largest value is 150 Largest value is 150 Largest value is 199 Largest value is 200

Actual output Largest value is 150 Largest value is 150 Largest value is 199 Largest value is 200 Largest value is 150 Largest value is150 Largest value is 150 Largest value is 199 Largest value is 200 Largest value is 150 Largest value is 150 Largest value is 199 Largest value is 200

Pass/fail pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass pass

Screen shots

You might also like