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 can check off
good dirivng points, accident points, moving violation ticket points and non-moving violation ticket
points. A driver can have multiple of these checked so you should be able to handle one checked or
all checked. There should also be a place to enter the number of points that should become visible
when the boxes are checked.
The data on the form should include:
- Vehicle identification number
- Vehicle name
- Year (just do it for the last four years and an other category)
- Value of the car
- Check boxes for good driving points, accident points, moving violatin ticket points and non-moving
violation ticket points
- Boxes to enter the number of points for each of the categories above
- List box where information is displayed (see more on this below)
- Insurance premium or amount owed (result of your calculation)
The user will key in all information and you need to calculate and display information in the
list box and information in the insurance premium/amount owed box. The insurance premium/amount owed
is based on the year, the value of the car, and the points. The answer should be formated.
- For the year 2017, the premium before considering the points is 6% of the value
- For the year 2016, the premium before considering the points is 5.5% of the value
- For the year 2015, the premium before considering the points is 5% of the value
- For the year 2014, the premium before considering the points is 4.5% of the value
- For the years before that, the premium is 4% of the value
The points should be handled this way:
- For good driving points, subtract $35 per point from the insurance premium/amount owed
- For accident points, add $75 per point to the insurance premium/amount owed
- For moving violation ticket points, add $50 per point to the insurance premium/amount owed
- For non-moving violation ticket points, add $25 per point to the insurance premium/amount owed
In the items list box, display the base premium based on the year and value calculation. Then
display and amount to be subtracted for good driving points, any amount to be added because of
accident points and any amount to be added because of ticket points. Display the net answer
in the item list box as well as in a box on the form for premium.
I also want you to write a file and display information of your choice for each record you process.