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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:10, drelisech6467
Linux is distributed under gnu gpl. why is this important? a. it ensures that only torvalds can profit from the sale of linux b. it prevents unknowledgeable users from downloading programs they don't know how to operate. c. it provides protection for the developers who created linux. d. it states that anyone can copy, modify, and share the program if changes are made public.
Answers: 1
image
Computers and Technology, 22.06.2019 17:00, DRock4976
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen too
Answers: 2
image
Computers and Technology, 22.06.2019 23:30, jhonpiper
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, jason9394
Facial expressions and gestures are examples of messages.
Answers: 3
You know the right answer?
Given three points (A, B, C) that will always create a triangle with a positive area, calculate the...

Questions in other subjects:

Konu
Mathematics, 16.12.2020 20:40