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. [here]
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.
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

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions