Question: !!!! In C language only Please !!!! !!!! In C language only Please !!!! Your code must use the following structure struct point struct t
Your code must use the following structure struct point struct t double xcoor double ycoor; char label [25]; typedef struct point struct Point; the following functions must be created: Point getPointO;/read in a point from the user (stdin) double distance(Point pt1, Point ptz); // return the distance between pt1 and pt2 double slopeCPoint pt1, Point pt2); calculate the slope of the line starting at pti and going to pt2 /* calculate pt3 such that a line from pt1 to pt3 is perpendicular to the line from pt1 ine from pt1 to pt3 is perpendicular to the line from pti to ptz, and the distance between ptl and ptz is the same as the distance between ptl and pt3 See the zylab for how the input will be formatted. Grading: ?5 points style per @7 10 points function getPoint 0 15 points function distance0 15 points function slope) 15 points function perpPoint0 10 points create a main that has an array of 5 points and . reads in 4 points from the user by calling getPoint 4 times . displays the distance between the 1st and 2nd points, and the 3rd and 4th points . displays the slope of the line between the 1st and 2nd points, and the 3rd and 4th points * creates a 5th point by calling perpPoint0 using the 1st and 2nd points Special Mentions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
