0% found this document useful (0 votes)
156 views3 pages

Consider The Following Triangle Classification System Originally Us

The document describes a triangle classification system that takes in three positive values representing the sides of a triangle and outputs whether the triangle is scalene, isosceles, equilateral, or right-angled. It asks to identify the input domain, equivalence classes, and test cases that cover the classes and boundaries of the system.

Uploaded by

Candace Lee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
156 views3 pages

Consider The Following Triangle Classification System Originally Us

The document describes a triangle classification system that takes in three positive values representing the sides of a triangle and outputs whether the triangle is scalene, isosceles, equilateral, or right-angled. It asks to identify the input domain, equivalence classes, and test cases that cover the classes and boundaries of the system.

Uploaded by

Candace Lee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

m

er as
co
eH w
o.
rs e
ou urc
o
aC s
v i y re
ed d
ar stu
sh is
Th

This study source was downloaded by 100000803767784 from CourseHero.com on 11-29-2021 03:10:58 GMT -06:00

https://www.coursehero.com/file/46640515/Consider-the-following-triangle-classification-system-originally-usdocx/
Consider the following triangle classification system,
originally used by Myers
[16]: The system reads in three positive values from the
standard input. The three values A,B, and C are interpreted as
representing the lengths of the sides of a triangle. The system
then prints a message on the standard output saying whether
the triangle is scalene, isosceles, equilateral, or right angled
if a triangle can be formed. Answer the following questions
for the above program:

m
er as
(a) What is the input domain of the system?

co
eH w
(b) What are the input conditions?

o.
(c) Identify the equivalence classes for the system?
rs e
ou urc
(d) Identify test cases to cover the identified ECs?
and if . The system reads in three positive values from the
o

standard input. The three values A,B, and C are interpreted as


aC s
vi y re

representing the lengths of the sides of a triangle. The system


then prints a message to the standard output saying whether
the triangle, if it can be formed, is scalene, isosceles,
ed d
ar stu

equilateral, or not a triangle. Develop a decision table to


generate test cases for this specification.
is

with a slightly different specification:


Th

The program reads floating values from the standard input.


The three values A, B, and C are interpreted as representing
the lengths of the sides of a triangle. The program then prints
sh

a message to the standard output that states whether the


triangle, if it can be formed, is scalene, isosceles, equilateral,
or right angled. Determine the following for the above

This study source was downloaded by 100000803767784 from CourseHero.com on 11-29-2021 03:10:58 GMT -06:00

https://www.coursehero.com/file/46640515/Consider-the-following-triangle-classification-system-originally-usdocx/
program:
(a) For the boundary condition A +B > C case (scalene
triangle), identify test cases to verify the boundary.
(b) For the boundary condition A = C case (isosceles
triangle), identify test cases to verify the boundary.
(c) For the boundary condition A = B = C case (equilateral
triangle), identify test cases to verify the boundary.
(d) For the boundary condition A2 + B2 = C2 case (right-
angle triangle), identify test cases to verify the boundary.
(e) For the nontriangle case, identify test cases to explore the

m
er as
boundary.

co
eH w
(f) For nonpositive input, identify test points.

o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000803767784 from CourseHero.com on 11-29-2021 03:10:58 GMT -06:00

https://www.coursehero.com/file/46640515/Consider-the-following-triangle-classification-system-originally-usdocx/
Powered by TCPDF (www.tcpdf.org)

You might also like