Question: (is_right_side_triangle.cpp) Write a pseudocode and C++ program that reads three positive integers for the edges of a triangle and determines if it is a right

(is_right_side_triangle.cpp) Write a pseudocode and C++ program that reads three positive integers for the edges of a triangle and determines if it is a right triangle. If it is, the program displays that the triangle is a right triangle. Otherwise, the program displays that the triangle is not a right triangle. The program does not accept negative values. Hint: A triangle is a right triangle if one angle is 90 degrees or radian (What is cos (90)?). We can use the law of cosines to find the angles. Note that the order of a, b, and c is important in the formula. b2 + c2 a? cos(A) =- 2bc Here are two sample runs: Please enter lengths of a triangle: 3 4 5 The triangle with lengths 3 4 5 is a right-side triangle Please enter lengths of a triangle: 4 5 6 The triangle with lengths 4 5 6 is a not a right-side triangle Please enter lengths of a triangle: -3 4 5 The values must be positive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
