Question: C programming with user-defined function! Problem: Given three points that will always create a triangle with a positive area, calculate the distance between the points

C programming with user-defined function!
Problem: Given three points that will always create a triangle with a positive area, calculate the distance between the points and the coordinate of the incenter found within the triangle created. For this assignment you will be required to implement the user-defined functions (from chapter 4). Example Execution #1: Example Execution #4: Enter x coordinate #1 -> 13 Enter Y coordinate #1 -> 20 Enter x coordinate #2 -> 25 Enter Y coordinate #2 -> 40 Enter x coordinate #3 -> 30 Enter Y coordinate #3 -> 15 Enter x coordinate #1 -> 55 Enter Y coordinate #1 -> -5 Enter X Coordinate #2 -> 4 Enter Y coordinate #2 -> -2 Enter x coordinate #3 -> 30 Enter Y coordinate #3 -> -10 Distance from point i to point 2: 23.32 Distance from point 2 to point 3: 25.50 Distance from point 3 to point 1: 17.72 Location of incenter: 22.15, 23.57 Example Execution #2: Distance from point i to point 2: 51.09 Distance from point 2 to point 3: 27.20 Distance from point 3 to point 1: 25.50 Location of incenter: 30.17, -6.72 Example Execution #5: Enter x coordinate #1 -> -5 Enter Y coordinate #1 -> 25 Enter x coordinate #2 -> 15 Enter Y coordinate #2 -> 0 Enter x coordinate #3 -> 10 Enter Y coordinate #3 -> 30 Enter x coordinate #1 -> 5 Enter Y coordinate #1 -> 5 Enter x coordinate #2 -> -5 Enter Y coordinate #2 -> 0 Enter x coordinate #3 -> -2 Enter Y coordinate #3 -> -8 Distance from point i to point 2: 32.02 Distance from point 2 to point 3: 30.41 Distance from point 3 to point 1: 15.81 Location of incenter: 5.18, 21.99 Distance from point i to point 2: 11.18 Distance from point 2 to point 3: 8.54 Distance from point 3 to point 1: 14.76 Location of incenter: -1.55, -1.35
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
