Algorithms for classifying shapes
This is a fixed question bank. Later sets may repeat these questions
Inputs are valid triangles. Compare the largest interior angle with 90°
Decision A: is the largest angle greater than 90°? Yes: output 3 (obtuse) and stop. No: go to B
Decision B: is the largest angle equal to 90°? Yes: output 2 (right-angled) and stop. No: output 1 (acute) and stop
Trace codes: 1 means Yes, 0 means No, and 9 means the decision was not reached. Output codes are given in the algorithm
Triangle ABC has these side relationships: AB, BC and CA all have different lengths
Its interior angles are A = 50°, B = 60° and C = 70°