Consider The Following Triangle Classification System Originally Us
Consider The Following Triangle Classification System Originally Us
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
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)