Question: Create a flowchart and write a C++ program to analyze a triangle along with its inscribed and circumscribed circles. The program should do the following:

Create a flowchart and write a C++ program to analyze a triangle along with its inscribed and circumscribed circles. The program should do the following: prompt for the length of the 3 sides of a triangle, and then check to be sure that the three sides entered form a valid triangle. For the triangle to be valid, 6 conditions must be met: o a > 0, b > 0, c > 0 o a < b+c, b < a+c, c < a+b If any bad inputs are entered, print out an appropriate descriptive error message and terminate the program using the command: return 1; Bad inputs include invalid triangles, sides, or menu choices. For Example: if (Side < 0) { cout << Error. Negative value for side not allowed. Program terminated.; Return 1; } If inputs are valid, the program should provide a menu and prompt for user preference (indicated by a single number or character) of the following options:

Option 1: Find the 3 angles of the triangle, and the triangle area. Include the unit degrees after all angles, but leave the area dimensionless.

Option 2: Find the largest incircle radius, and the remaining interior area of the triangle.

Option 3: Find the circumcircle radius, and the remaining interior area of the circumcircle.

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!