Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 05:00, mathman783
Which two editions of windows 7 support 64 bit cpus? choose two out of professional, business, starter, or home premium.
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, BIKRAMlawati5544
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
image
Computers and Technology, 24.06.2019 18:50, LouieHBK
Which style did jack use on the vocabulary words in reports?
Answers: 2
image
Computers and Technology, 25.06.2019 01:00, jimmymurray29
When a new name is registered on the internet, the process can take two hours to four hours four hours to three days two hours to two days one hour to eight hours
Answers: 1
Do you know the correct 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, 04.02.2022 01:00
Konu
Mathematics, 04.02.2022 01:00