Question: C++ *Please dont handwrite* Write a program that will determine whether four side lengths entered by the user could form a polygon (closed sided figure).

C++ *Please dont handwrite*

Write a program that will determine whether four side lengths entered by the user could form a polygon (closed sided figure). All the following must be true for the side lengths to be a polygon:

a

b

Next, if a polygon can be formed, determine whether it can form a rectangle, and then a square. Output a message that states whether or not a polygon can be formed and, if one can be formed, whether a square or rectangle can be formed.

Execute this program twice using values of:

15, 2, 4, 3

5, 3, 3, 5

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!