Consider again the triangle classification program with a slightly different specification: The program reads floating values from
Question:
Consider again the triangle classification program with a slightly different specification:
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 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 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 boundary.
(f) For nonpositive input, identify test points.
Step by Step Answer:
Software Testing And Quality Assurance Theory And Practice
ISBN: 9780471789116
1st Edition
Authors: Sagar Naik, Kshirasagar Naik