orthocenter and create a triangle that connects the orthocenter to the end points of the largest side in the triangle ABC. Display the internal angles of this new triangle from smallest to largest and display whether it is isosceles, scalene, or equilateral, and whether it is acute, obtuse, or right. How to determine whether two floating-point values are equal? • The comparison two floating-point values for an EXACT match is prone error, for this assignment if the absolute value of the difference between two floating-point values is less than 0.001 then the values will be considered equivalent. Example Execution #1: Enter point #1 -> 1 1 Enter point #2 -> 5 2 Enter point #3 -> 3 4 Coordinates of orthocenter: 3.20, 3.20 Internal triangle angles: 31.0, 47.7, 101.3 Triangle Type: Scalene obtuse Example Execution #2: Enter point #1 -> 3 3 Enter point #2 -> -4 -1 Enter point #3 -> 3 5 Coordinates of orthocenter: 6.43, -1.00 Internal triangle angles: 40.6, 60.3, 79.1 Triangle Type: Scalene acute

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 2PP: (Mechanics) The deflection at any point along the centerline of a cantilevered beam, such as the one...
icon
Related questions
Question

PLEASE CODE THIS IN C AND NOT C++. ONLY USE IF/CASE AND USER-DEFINED FUNCTIONS. PLEASE DO NOT USE LOOPS,STRUC, AND POINTERS. PLEASE ONLY DECLARE AND CALL VARIABLES IN THE MAIN FUNCTION, EVERYTHING ELSE IS IN A DIFFERENT USER-DEFINED FUNCTION. PLS CHECK IF IT WORKS TOO.

Problem: Given three points (A, B, C) that will always create a triangle with a positive area, calculate the location of the
orthocenter and create a triangle that connects the orthocenter to the end points of the largest side in the triangle ABC.
Display the internal angles of this new triangle from smallest to largest and display whether it is isosceles, scalene, or
equilateral, and whether it is acute, obtuse, or right.
How to determine whether two floating-point values are equal?
The comparison two floating-point values for an EXACT match is prone error, for this assignment if the absolute
value of the difference between two floating-point values is less than 0.001 then the values will be considered
equivalent.
Example Execution #1:
Enter point #1 -> 1 1
Enter point #2 -> 5 2
Enter point #3
-> 3 4
Coordinates of orthocenter: 3.20, 3.20
Internal triangle angles: 31.0, 47.7, 101.3
Triangle Type: Scalene obtuse
Example Execution #2:
Enter point #1 -> 3 3
Enter point #2 -> -4 -1
Enter point #3 -> 3 5
Coordinates of orthocenter: 6.43, -1.00
Internal triangle angles: 40.6, 60.3, 79.1
Triangle Type: Scalene acute
Transcribed Image Text:Problem: Given three points (A, B, C) that will always create a triangle with a positive area, calculate the location of the orthocenter and create a triangle that connects the orthocenter to the end points of the largest side in the triangle ABC. Display the internal angles of this new triangle from smallest to largest and display whether it is isosceles, scalene, or equilateral, and whether it is acute, obtuse, or right. How to determine whether two floating-point values are equal? The comparison two floating-point values for an EXACT match is prone error, for this assignment if the absolute value of the difference between two floating-point values is less than 0.001 then the values will be considered equivalent. Example Execution #1: Enter point #1 -> 1 1 Enter point #2 -> 5 2 Enter point #3 -> 3 4 Coordinates of orthocenter: 3.20, 3.20 Internal triangle angles: 31.0, 47.7, 101.3 Triangle Type: Scalene obtuse Example Execution #2: Enter point #1 -> 3 3 Enter point #2 -> -4 -1 Enter point #3 -> 3 5 Coordinates of orthocenter: 6.43, -1.00 Internal triangle angles: 40.6, 60.3, 79.1 Triangle Type: Scalene acute
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 1 images

Blurred answer
Knowledge Booster
Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr