Purchase Solution

Triangle Project in C++

Not what you're looking for?

Ask Custom Question

Write a program that reads three real numbers, 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: true if triangle is true and the triangle is scalene (no two sides are equal); false otherwise

Purchase this Solution

Solution Summary

This solution demonstrates the use of C++ classes to read values as Input and identifies if these values represent one of the three types of triangles.

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.