Uploaded by han xia

CS Assignment(beginner)

advertisement
Assignment:
Need to put source code into a word file and upload it to UMMOODLE.
Write a program with function comput_middle_point to compute the middle point
of the line segment AB. Given point A(x1, y1) and B(x2, y2) and pointer should be
used in this function.
Example: (user input is shown in Italic)
Point A(x1, y1): -2 -8
Point B(x2, y2): 4 6
Middle point: (1, -1)
Download