Question: QUESTION 21 Write a cpp program to calculate and display the midpoint coordinates of the line segment connecting two endpoints Use the fact that the

QUESTION 21 Write a cpp program to calculate and display the midpoint coordinates of the line segment connecting two endpoints Use the fact that the coordinates of the midpoint between two points with the coordinates (x1, y1) and (x2, y2) are x1+ x2 yly2 2 The program should produce the following display (replacing the underscores with values calculated by the program) The x midpoint coordinate is xxx xx The y midpoint coordinate is yyy yy x00x x and yy yy are the values calculated and displayed in a field wide enough for three places to the left of the decimal point and Include a comment with your name, course code and date. Provide the cpp file along with a screenshot showing execution with input coordinates of (2.10) and (12.6), in a zip flie Attach File Browse My Computer Browse Content Collection Browse Dropbox
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
