what is triangle and what is algaredham
Answers
Step-by-step explanation:
You just need to come up with a series of tests to apply to the triangle. Imagine you are designing the layout of a factory, and these triangles are coming down a conveyor belt past a series of workers. Each worker can check something about the triangle, and then put it into a bin based on its type or move it onto another conveyor belt to go past more workers who will do more tests on it.
For example, you can easily test if it is equilateral by checking if all the sides are equal and if so you can just output that and stop there.
If not, then it must be scalene or isoceles.
If the largest angle is smaller than 90 degrees, it's acute. If it's equal to 90 degrees then it's a right angled triangle, if it's greater than 90 degrees then it's obtuse.
If two of the sides are of equal length then it's isoceles, otherwise it's scalene.
Start by sketching out a decision tree or flowchart based on these criteria. Then turn it into pseudocode.
What is Triangle?
- Triangle is a closed figure which has three sides, three vertices and three angles.
- The sum of three angles of a triangle is equal to the 180 degree.
How many types of triangle?
There are three types of triangle on the basis of sides are:
- (1) Scalene Triangle
- (2) Isosceles Triangle
- (3) Equilateral Triangle
There are three types of triangle on the basis of angles are:
- (1) Acute Angled Triangle
- (2) Right Angled Triangle
- (3) Obtuse Angled Triangle