A more detailed set is attached. Instructions Define an enumeration typetriangleTypethat has the valuesscalene,isosceles,equilateral, andnoTriangle. Write a functiontriangleShapethat takes as...

1 answer below »
A more detailed set is attached.


Instructions



  1. Define an enumeration typetriangleTypethat has the valuesscalene,isosceles,equilateral, andnoTriangle.

  2. Write a functiontriangleShapethat takes as parameters three numbers, each of which represents the length of a side of the triangle. The function should return the shape of the triangle. (Note:In a triangle, the sum of the lengths of any two sides is greater than the length of the third side.)

  3. Write a program that prompts the user to input the length of the sides of a triangle and outputs the shape of the triangle.




Instructions 1. Define an enumeration type triangleType that has the values scalene, isosceles, equilateral, and noTriangle. 2. Write a function triangleShape that takes as parameters three numbers, each of which represents the length of a side of the triangle. The function should return the shape of the triangle. (Note: In a triangle, the sum of the lengths of any two sides is greater than the length of the third side.) 3. Write a program that prompts the user to input the length of the sides of a triangle and outputs the shape of the triangle. The task the run-checks look for in grading: Tasks 0.00 out of 10.00 Program Outputs Correctly 4 0 out of 4 checks passed. Review the results below for more details. Checks Test CaseIncomplete Successful Output I scalene Input 2 4 5 Output Results scalene Show Details Test CaseIncomplete Successful Output II noTriangle Input 2 5 8 Output Results noTriangle Show Details Test CaseIncomplete Successful Output III isosceles Input 2 2 3 Output Results isosceles Show Details Test CaseIncomplete Successful Output IV equilateral Input 8 8 8 Output Results equilateral
Answered 1 days AfterNov 19, 2021

Answer To: A more detailed set is attached. Instructions Define an enumeration typetriangleTypethat has the...

Sathishkumar answered on Nov 20 2021
123 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here