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.
The user will key in all of the information up to the
insurance premium or amount owed. You have to calculate amount owed 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 formatted. Obviously the criteria I am giving you are not
realistic!
For the year 2005 the premium before considering the points is 5.5% of the
value.
For the year 2004 the premium before considering the points is 5% of the value.
For the year 2003 the premium before considering the points is 4.5% of the
value.
For the year 2002 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 a zipped
version of the folder including the file.