Individual: Exceptions
Using Microsoft® Visual Studio®, write a windows form application to find the area and perimeter of a rectangle for the given input values of Length and Width in different measurement units using inches (in), feet (ft), meters (m), and centimeters (cm). In addition, write an AreaConverter class that can be used to convert output in different measurement units. If the user enters a negative number or a nonnumeric value, throw and handle an exception. Your solution should include exception-handling techniques with a minimum of two catch clauses. Include comments in your C#.net code file.


Leave a Reply
Want to join the discussion?Feel free to contribute!