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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started