Write a cpp program that creates a number of line objects

Design a class Line that implements a line, which is represented by the formulay=ax+b. Your class should storeaandbas double member variables. Write a member function intersect(l) that returns thexcoordinate at which this line intersects line l. If the two lines are parallel, then your function should throw an exception Parallel. Write a C++ program that creates a number of Line objects and tests each pair for intersection. Your program should print an appropriate error message for parallel lines.

Order from us and get better grades. We are the service you have been looking for.