Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

On a scale of 1-10 how funny would you say you are?

Answered: 1 week ago