Question: Consider a program for classification of a triangle. Its input is a triple of positive integers (say a, b and c) from interval [1, 100].

Consider a program for classification of a triangle. Its input is a triple of positive integers

(say

a, b and

c) from interval [1, 100]. The output may be one of the following:

[Scalene, Isosceles, Equilateral, Not a triangle, invalid inputs]

(a) Draw a program graph, DD path graph and write test cases for every independent path.

(b) Find all du-paths and identify those du-paths that are not dc paths. Write test cases for every du-path.

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 Systems Analysis And Design Questions!