Question: Programming Assignment Write a program position.cpp that reads two points and reports if the first point is above/belowlefiright or equals the second point. l. Type

 Programming Assignment Write a program position.cpp that reads two points and
reports if the first point is above/belowlefiright or equals the second point.

Programming Assignment Write a program position.cpp that reads two points and reports if the first point is above/belowlefiright or equals the second point. l. Type "emacs position.cpp & (without the double quotes) at the terminal to create a new file, position.cpp Prompt and read in the (two) coordinates, (ti. n). of the first point. The coordinates are not necessarily integers. 2. CSE1222 Lab 3 CSE1222-Summer 2018 3. Prompt and read in the (two) coordinates, (x2,y), of the second point. The coordinates are not necessarily integers. Print out one of the following messages depending on the relative location of the first and second points 4. Point (n,n) is left and below point (x.pl . Point (x, y) is left and above point (x22) . Point (xi,y) is left of(x2,y2). .Point (x1, y) is right and below point (x2y2). .Point (xi, yi) is right and above point (x2.2) . Point (xi, yi) s right of point (x2.p). . Point (xi, y?) is below point (x,12). . Pont (xi.)) s above point (x2,y2). . Point (x1, y) equals point (x2, y2). Replace (, ys) and (az. j2) with the actual coordinates of the first and second points, respectively.) Point (G3, y) is left and below point (y)ifx sxy and yi sy

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!