Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#include /// Input/output library #include /// Your triangle class using namespace std; /// Set namespace to std /// This is a program to test the
#include /// Input/output library #include /// Your triangle class using namespace std; /// Set namespace to std /// This is a program to test the Traingle Solver class int main() { /// Declare variables Triangle triangle; /// Create a Triangle object /// Lets test SSS cout You will write a class to help young geometry enthusiast to solve the side and angle problem given to all geometry students by their teachers. This class will be able to calculate all three angles and all three sides (if possible) given three bits of information about the triangle Specifications: The input combinations will be either 3 sides, 3 angles, 2 sides/1 angle, 2 angles/1 side, or only 1 or 2 inputs. If a solution is not possible, the class will notify the student The class should allow the student to output the solution (all side and angle values) or state if no solution is possible The program should also state what type of problem it is that it is solving (AAA, AAS, ASA, SAS, SSA, or SSS). For a description of these, please see the website: https: //www.mathsisfun.com/algebra/triq-solving-triangles.html The class shoud allow the student to set and get any side?r angle The class should allow the student to get the type of problem to be solved (once three bits of information have been given) . The class should allow the student to initiate a solving of the triangle problem All numbers should be printed in a fixed decimal format with only one decimal place always showing A basic program is given to test your class. Please be aware that this will not test ALL possibilities. It is your responsibility to test all possibilities Assumptions: 1) If two solutions exist, only report one 2) The inputs will always to valid for a triangle 3) There will not be more than 3 inputs (there may be less)
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