Write a program that helps the user calculate the midpoint of a line segment in the 2D Cartesian plane as well as the length of that line segment (distance between the two points). Make your output clear and only print 3 digits to the right of the decimal point. The user should be able to do as many calculations as they wish, and be given clear instructions on how to exit the program. Make sure that you test your program using x and y coordinates in all 4 quadrants.
Comments
Leave a comment