Write a object-oriented triangle program


Question:

Write a Object-Oriented Triangle Program

Write a program that reads three real numbers for the three sides of a triangle., assigns the appropriate boolean value to the following boolean variables, and displays the associated values.

Triangle: true if the real numbers can represent lengths of the sides of a triangle (the sum of any two of the numbrs must be greater than the third); false otherwise.

Equilateral: true if triangle is true and the triangle is equilateral (the three sides are equal); false otherwise

Isosceles: true if triangle is true and the triangle is isosceles (at least two sides are equal): false otherwise

Scalene: ture if triangle is true and the triangle is scalene (no two sides are equal); false otherwise

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a object-oriented triangle program
Reference No:- TGS01937498

Now Priced at $20 (50% Discount)

Recommended (96%)

Rated (4.8/5)