Question: Write in C++ , i need the pseudocode and source code. Write a program to get the lengths of 3 sides of a triangle as

Write in C++ , i need the pseudocode and source code.

Write in C++ , i need the pseudocode and source code. Write

Write a program to get the lengths of 3 sides of a triangle as input and determine the type of the triangle. Assume that the input values are positive integers and sorted in an increasing order There are three types of triangles that tell how many sides (or angles) are equal. There can be 3, 2 or no equal sides/angles: Equilateral Triangle - Three equal sides -> Three equal angles, always 60 Isosceles Triangle - Two equal sides -> Two equal angles Scalene Triangle - No equal sides --> No equal angles . Triangles can also have names that tell you what type of angles are inside: Acute Triangle - All angles are less than 90 Right Triangle - Has a right angle (90) Obtuse Triangle - Has an angle more than 90 . Since the angles are not given, you should use Pythagoras theorem to decide between Acute, Right and Obtuse types. Below are the sample inputs & outputs. No need to output explanation It is given to help you understand Sample Input 235 345 455 4 4 7 Sample output Explanation Not a triangle! Scalene Right triangle! Isosceles Acute triangle! Isosceles Obtuse triangle! Equilateral Acute triangle! 2+3 52 2 sides are equal & 44 42 6 Please submit your pseudocode (in a separate file) and your source code

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!