Question: Please dont copy and paste. It is c++ assignment please comments ur code too Maximum number of files: 4 Type of work: Individual work Extend

Please dont copy and paste. It is c++ assignment please comments ur code too  Please dont copy and paste. It is c++ assignment please comments

Maximum number of files: 4 Type of work: Individual work Extend the GeometricArea.cpp program you wrote to use an exception to handile user input where the parameters entered do not meet specifications, or that simply don't make sense In the case of GeometricArea this occurs when the number of sides is two (2). You should create a class SpecificationException that is thrown whenever your program encounters a specification that does not make sense. For example, if your program is asked to compute the area of a 2 sided polygon, You should throw a SpecificationException, because the fewest number of sides a polygon can have is 3 You can create this class using orly an interface (or header) file called SpecificationException.h. Simply include this header file in your GeometricArea opp source code and you can use that exception object The test driver for ris program is nared Specificato Exception test opp because?is supposed to call Geometriana Anations with vaues that trigger a exception VPL

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!