java swing traffic violation
I'm trying to make a small program using only java(swing) using CASE and try and catch, it's an application that will be used as an example for traffic violations in which the user can input speed limit, the speed at which offender was traveling and number of previous tickets that offender has received.
The application needs an interface that will provide calculating charges and exit options. The application should calculate and display how many miles over the speed limit the offender was traveling, cost of speeding ticket and court cost. The program should calculate a charge of $20.00 for each mile per hour over the speed limit. The program should calculate court costs beginning at $74.80 for the first offense and increasing by $25.00 for each subsequent offense up to the third offense. (which will represent the maximum court cost).