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...



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

Extracted 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
Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here