subject

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 Example Execution #3: Enter point #1 -> 3 1 Enter point #2 -> -3 1 Enter point #3 -> 0 4 Coordinates of orthocenter: 0.00, 4.00 Internal triangle angles: 45.0, 45.0, 90.0 Triangle Type: Isosceles right Example Execution #4 (rounding to one decimal place may result in angles that do not add up to exactly 180): Enter point #1 -> 3 2 Enter point #2 -> -3 2 Enter point #3 -> O 3 Coordinates of orthocenter: 0.00, 11.00 Internal triangle angles: 36.9, 71.6, 71.6 Triangle Type: Isosceles acute Example Execution #5: Enter point #1 -> -50 Enter point #2 -> -2 4 Enter point #3 -> 1 0 Coordinates of orthocenter: -2.00, 2.25 Internal triangle angles: 36.9, 36.9, 106.3 Triangle Type: Isosceles obtuse Example Execution #6: Enter point #1 -> O 1.7320508 Enter point #2 -> -30 Enter point #3 -> 30 Coordinates of orthocenter: 0.00, 5.20 Internal triangle angles: 60.0, 60.0, 60.0 Triangle Type: Equilateral acute

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
Businesses allocate resources for their best and most productive uses. the more a resource, the more costly it will be. a manufacturer that requires scarce and costly resources is likely to charge for its products.
Answers: 2
question
Computers and Technology, 22.06.2019 11:00
How does a policy manual an organization? a. it boost productivity. b. it create awareness in employees about the organization’s values. c. it employees achieve targets. d. it safeguards the organization from liabilities.
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
question
Computers and Technology, 23.06.2019 03:00
What are the different parts of computer
Answers: 2
You know the right answer?
Given three points (A, B, C) that will always create a triangle with a positive area, calculate the...
Questions
question
Social Studies, 07.05.2021 18:20
Questions on the website: 13722363