## CIS56 Assignment - Insurance Form and File:

Put up a form to take in the following information - note that the year should be done
with a radio button since there can only be one year.

There should be check boxes where you check off good driving points, accident points,
moving violation ticket points and non-moving violation ticket points. If a driver has one
then one should be checked. If the driver has all four than four should be checked. There
should also be boxes for each type where the points are entered if the box is checked.

- Vehicle id#
- Vehicle name
- Year (just do it for the last three years and an other category)
- Value
- Check boxes for good driving, accident, moving violation and non-moving violation points
- Good driving points
- Accident points
- Moving violation ticket points
- Non-moving violation ticket points
- Insurance premium or amount owed (the thing you are calculating and then putting on the form

The user will key in all of the information up to the insurance premium or amount owed. That
you have to calculate and display on the form.

The insurance premium or amount owed should be based on the year, the value of the car, the good driving
points, the accident points and the ticket points. This answer should be formated.
Obviously the criteria I am giving you are not realistic!

For the year 2003 the premium before considering the points is 5.5% of the value.

For the year 2002 the premium before considering the points is 5% of the value.

For the year 2001 the premium before considering the points is 4.5% of the value.

For the year 2000 the premium before considering the points is 4% of the value.

For all other years the premium is 3.5% of the value.

For good driving points subtract $25 per point from the insurance premium or amount owed.

For accident points add $50 per point to the insurance premium or amount owed.

For moving ticket points add $25 per point to the insurance premium or amount owed.

For non-moving ticket points add $10 per point to the insurance premium or amount owed.

If the rate goes below 2% of the value of the car, the insurance premium or amount owed should be
established at the 2% point.

Write a file that contains the vehicle id#, the vehicle name and the insurance premium or
amount owed. The file should be written using technique that was covered this
week. When you pass in the assignment, you must attach the project, form and the file.