Question: C PROGRAMMING Make a program that, reads and saves five points of a level into a record chart. There are lines between those points. The
C PROGRAMMING
Make a program that, reads and saves five points of a level into a record chart. There are lines between those points. The program calculates and prints the length of the chain those lines form and how long the distance is if you go through the line from point 1 to point 5. And how long the distance is if you go from point 1 straightest way to point 5.
The distance between two points is calculated like this:

The results are printed in the following way:
Distance through the line is #.###
Distance between point 1 and point 5 is #.##
Distance 2 = (point1.x - point2.c)2 + (pointl.y - point2.y)? 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
