Question: Develop multiple-condition coverage test cases for the pseudocode triangle program (the one I listed below). Pay attention to the dependency between statement fragments 14 and

Develop multiple-condition coverage test cases for the pseudocode triangle program (the one I listed below). Pay attention to the dependency between statement fragments 14 and 16 with the expression (a = b) AND (b = c).

1. Program triangle2

2. Dim a, b, c As Integer

3. Dim IsATriangle As Boolean

4. Ouput ("Enter 3 integers which are sides of a triangle.")

5. Input(a, b, c)

6. Ouput ("Side A is", a)

7. Output ("Side B is", b)

8. Output ("Side C is", c)

9. If (a < b + c) AND (b < a + c) AND (c < a + b)

10. Then IsATriangle = True

11. Else IsATriangle = False

12. EndIf

13. If IsATriangle

14. Then If (a = b) AND (b = c)

15. Then Output ("Equilateral")

16. Else If (a != b) AND (a != c) AND (b != c)

17. Then Output ("Scalene")

18. Else Output ("Isoscles")

19. EndIf

20. EndIf

21. Else Output ("Not a triangle")

22. EndIf

23. End triangle2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!