Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Exceptions

Write a Windows Forms application in C# to find the area and perimeter of a circle for the given input values of the radius using inches (in), feet (ft), meters (m), and centimeters (cm). 

The formula for the area of a circle is

     radius * radius * 3.14.   (e.g. a circle with radius 2 has area 2 * 2 * 3.14 = 12.56)

The formula for the circumference of a circle is

      2 * radius * 3.14.    (e.g. a circle with radius 5 has circumference 2 * 5 * 3.14 = 31.4)

In addition, write an AreaConverter class that can be used to convert output in different measurement units. Use a separate control to let the user pick the measurement unit to convert the result to.

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.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question