[10] Write a program that will allow a user to work with points.
The program should be able to read two points, print the distance between the points, print the point that is ½ way between the two points. Use good procedural abstraction. You will need to write functions to read a point, print a point, find the distance between two points and calculate the midpoint.
Points must have one of the following formats:
- (a,b)
- a and b are real numbers
- it starts with a ( and ends with a )
- there is a comma between a and b
- there may be any number of spaces between the components
- a b
- a and b are real numbers
- no other non-space characters are allowed
- there may be any number of spaces between the components