Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions