Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 4 . Consider the following program, and judge whether the three integer side lengths can form a triangle. This triangle can be general triangle,

Q4. Consider the following program, and judge whether the three integer side lengths can form a triangle. This triangle can be general triangle, an isosceles trangle or an equiateral triangle, and finally outputs the criangle type. [Note: The sum of the two sides is greater than the thisd side, and the absolute value of the difference between an/ two sides is less than the thurd gide, It can form a triangle](6 Marks)
a. Draw the CFG of the program and calculate the full complexity.
b. Write the basic paths covered.
c. Design a set of 4 test cases to meet the basic test path coverage criteria.
Following is the set of input data:
image text in transcribed

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

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

Describe three applications of virtual reality.

Answered: 1 week ago

Question

1. Which position would you take?

Answered: 1 week ago