Question: Please do in C++, and also please include comments HOMEWORK #8-Triangle Classification Based upon the lengths of the 3 sides, determine if a triangle is

Please do in C++, and also please include comments

Please do in C++, and also please include comments HOMEWORK #8-Triangle ClassificationBased upon the lengths of the 3 sides, determine if a triangle

HOMEWORK #8-Triangle Classification Based upon the lengths of the 3 sides, determine if a triangle is scalene, isosceles, or equilateral, or if the sides do not form a triangle For a triangle to exist, the sum of the lengths of any two sides is greater than the length of the third side. Specifications: Write a program that: 1. Defines an enumeration type, triangleType that has the values scalene, isosceles, equilateral, and noTriangle. 2. Wraps the enumeration type in a namespace called Triangle. Uses a function, triangleShape, that takes three numbers as formal parameters, each of which represents the length of a side of the triangle. The function should then return the shape of the triangle. 3. Prompts the user to input the length of the sides of a triangle and outputs the shape of the triangle. 4. Use the following function prototype for the triangleShape function: // Determines if the three sides form a triangle Triangle::triangleType triangleShape (int a, int b, int c) Note: You are NOT allowed to any: using namespace namespaceVari

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!