Write a c program that creates a number of line objects and


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.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a c program that creates a number of line objects and
Reference No:- TGS01262663

Expected delivery within 24 Hours