Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project Description Write a C + + console application ( in Visual Studio ) that solves for the missing attributes of a triangle. Imagine that
Project Description
Write a C console application in Visual Studio that solves for the missing attributes of a triangle.
Imagine that you are an engineer in the field and have some of the measurements of a triangle, but not all. This application will solve the missing values.
eg You have the length of two sides and the degrees of one of the angles. What is the length of the third side, and the degrees of the other two angles?
Solutio Triangulorum
Mathematicians have been triangle obsessed for millennia. The great mathematician Thales of Miletus century BCE solved the problem of measuring the height of the Great Pyramids without climbing them by using the congruence of triangles. Later, Euclid, Archimedes, and Eratosthenes revolutionized astronomy and engineering as they proved theorems that are equivalent to modern trigonometric formulae. By BCE, Hipparchus published tables of ratios which became the first trigonometric tables.
A collection of those solutions can be found on Wikipedia. h
Requirements
Write a CVisual Studio Solution program that reads an attribute string egSSS for sidesideside, 'ASA' for anglesideangle, etc. followed by three real numbers all on the same line Angles will be expressed in degrees eg where radians
Output to the console the length of the three sides in one column, then the three opposite angles in the second column The angle is the angle opposite line etc. The angles must be reported in degrees.
Additionally, output:
the perimeter
the area
whether the triangle is equilateral, isosceles, or scalene.
whether the triangle is obtuse, right, or acute.
Align the numeric values in the columns.
Output all numeric values rounded to three decimal places.
Repeat the query until the user types "quit", "exit", or "bye" in any case.
:
Overview of particular steps and tools used when solving plane triangles
The standard method of solving the problem is to use fundamental relations.
Law of cosines
bccos
accos
abcos
Law of sines
Sum of angles
Law of tangents
There are other sometimes practically useful universal relations: the law of cotangents and Mollweide's formula.
Notes
To find an unknown angle, the law of cosines is safer than the law of sines. The reason is that the value of sine for the angle
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