B. Alex Bridges
CPSC-101, Winter 1998
The Geometry Program
Please enter 1st x coordinate: 0.0
Please enter 1st y coordinate: 0.0
Please enter 2nd x coordinate: 5.0
Please enter 2nd y coordinate: 0.0
Please enter 3rd x coordinate: 0.0
Please enter 3rd y coordinate: 5.0
The points entered were:
1. (0.0,0.0)
2. (5.0,0.0)
3. (0.0,5.0)
The distances between each point are:
=> Point 1 to Point 2 = 5.0
=> Point 2 to Point 3 = 7.0710678118654755
=> Point 3 to Point 1 = 5.0
Their enclosed triangular area is:
=> 12.5
The slopes between each point are:
=> Point 1 to Point 2 = 0.0
=> Point 2 to Point 3 = -1.0
=> Point 3 to Point 1 = -Infinity