Answered step by step
Verified Expert Solution
Link Copied!

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.
e.g. 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 140BCE, 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 C++(Visual Studio 2022 Solution) program that reads an attribute string (e.g.,'SSS' for side-side-side, 'ASA' for angle-side-angle, etc.) followed by three real numbers (all on the same line). Angles will be expressed in degrees (e.g.,87, where 180= radians).
Output to the console the length of the three sides (abc) in one column, then the three opposite angles in the second column (). The angle is the angle opposite line a, 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.
10:18
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
a2=b2+c2-2bccos
b2=a2+c2-2accos
c2=a2+b2-2abcos
Law of sines
asin=bsin=csin
Sum of angles
++=180
Law of tangents
a-ba+b=tan12(-)tan12(+)
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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data 29th British National Conference On Databases Bncod 2013 Oxford Uk July 2013 Proceedings Lncs 7968

Authors: Dan Olteanu ,Georg Gottlob ,Christian Schallhart

2013th Edition

3642394663, 978-3642394669

More Books

Students also viewed these Databases questions

Question

At what level(s) was this OD intervention scoped?

Answered: 1 week ago