Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4 . 2 3 Lab 0 3 : Triangles To complete this week's lab, you will be given 3 inputs which represent a possible triangle,

4.23 Lab 03: Triangles
To complete this week's lab, you will be given 3 inputs which represent a possible triangle, and you need to determine if those three inputs would construct a right triangle. If the 3 sides do not form a right triangle, then you will need to determine if they form a triangle at all. You will not know which input of the three given is the measurement of the longest side, however.
The formula to ditermine if 3 lengths form a right triangle is to see if the short side squared + the other short side squared equals the long side squared.
Determining if 3 lengths form a triangle
The formula to determine if 3 lengths form a triangle is to see if the sum of the two short sides is greater than the longest side.
Sample Execution
3
5
4
These lengths form a right triangle
\table[[Case,Input,Output,Points],[Sides do form a right triangle,3,5,4,These lengths form a right triangle,20],[Sides do form a right triangle,7,24,25,These lengths form a right triangle,20],[Sides do form a triangle,9,38,41,These lengths form a triangle,20],[Sides do form a triangle,13,10,5,These lengths form a triangle,20],[Sides do not form a triangle,6,15,8,These lengths do not form a triangle,20]]
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_2

Step: 3

blur-text-image_3

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions