I am needing some help with Visual C# 2010 Comprehensive An Introduction to Object Oriented Programing by Joyce Farwell, Chappter 11 Question 3.
ArgumentException is an existing class that derives from Exception; you use it when one or more of a method's arguments do not fall within an expected range. Create a class named CarInsurance containing variables that can hold a driver's age and state of residence. Within the class, create a method that accepts the two input values and calculates a preminum. The premium base prive is $100 for residents of Illinois (IL) and $50 for residents of Wisconsin (WI). Additionally, each driver pays $3 times the value of 100 minus his or her age. If the driver is younger then 16, or older than 80, or not a resident of Illinois or Wisconsin, Throw an ArgumentException from the method. In the Main() method of the CarInsurance class, try code that promotes the user for each value. If the user does not enter a numeric value for age, catch a FormatException and display an error message. Call the method that calculates the premium and catch the potential ArgumentEcecption object. Save file as CarInsurance.cs.
I have been fighting with the one for some time now and could realy use some help.