Professional Documents
Culture Documents
Lab Seven
Lab Seven
Lab Seven
TASK DESCRIPTION
A point in a Cartesian co-ordinate system is identified by a pair of x and y co-
ordinates. While a straight line in the same system is defined by a minimum of
two such points. The slope of the line is its inclination from the x – axis and is
calculated by dividing the difference of y co-ordinates by the difference of x co-
ordinates.
In the main() function create three lines and ask the user to input the co –
ordinates for the two points. Finally identify and display the relation that exists
between each of the three lines. Overload the symbol ( # ) to compare the slope
of any two lines.