Question: The list is prioritized, unambiguous, verifiable, consistent, and traceable. Fill out the checklist . For each criteria, like tradeoffs between requirements are clear: Specify the

The list is prioritized, unambiguous, verifiable, consistent, and traceable.

Fill out the checklist . For each criteria, like "tradeoffs between requirements are clear":

Specify the result of the criteria, e.g. yes, no, NA

the requirement number and describe any requirements that are exceptions/defects that require further review or analysis, e.g. Requirement 1.1 is not clear

Use the "Notes" column to describe anything else that the Requirements from the review.

Requirements to be reviewed:

Request Input:

The program will request 3 numbers, which is call A, B, and C, which are the sides of a possible triangle

Verify the Input:

The 3 inputs must be real numbers, greater than 0 and not too big.

Otherwise, output error message and stop

Verify that the sides form a legal triangle

If A + B >= C or B + C >= A or C + A >= B then a legal triangle

Otherwise, output error message and stop

Determine if the triangle is a right triangle

If A^2 + B^2 = C^2 or B^2 + C^2 = A^2 or C^2 + A^2 = B^2, then a right triangle.

Due to the issues of numerical precision, = in this case means within 1%

Determine if the triangle is equilateral, isosceles, or scalene

If the sides are all equal, then the triangle is Equilateral

Else if two side are equal, but not three, then the triangle is Isosceles

6. Display type of triangle

If it is a right and Isosceles Print Right Isosceles Triangle

If it is a right and Scalene Print Right Scalene Triangle

If is a right and Equilateral Print Equilateral Triangle

If it is not a right and Isosceles Print Isosceles Triangle

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!