Question: CS 2413 - Data Structures - Spring 2020 - Project Two Due: 11:59 PM, February 24, 2019 Description: This project is an extension of the

CS 2413 - Data Structures - Spring 2020 - Project Two Due: 11:59 PM, February 24, 2019 Description: This project is an extension of the previous project. Please change the name of the class Intervals to Segments when you submit project 2. Here are the requirements for project 2. 1. Template all classes. 2. Create these: a class Exception ; b. class LineSegmentException: Public Exception t}; c. class Segments Exception: Public Exception}; 3. Under these conditions throw exception. Catch and print a message as follows: T a throw a LineSegmentException when you ask for a midpoint of a line segment that has a length of 0. b. throw a SegmentsException when you are asked to remove a line segment that does not exists 4. Create an overloaded & aClosedPolygon(); //Bonus Method -20 Points 6. In the Segments class, create a method named findAllIntersects that returns a Segments object that contain line segments that intersects with the line segment that is passed as a parameter. Here is the method prototype: Segments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
