yeh i know there must be rate in terms of value of the premium

let say if i decide to charge the young drivers around 800 for year and middle age 6500 for year how would i do that sorry as i said i'm new to this and i 'll be appreciate if you could give me an example or hints how is going to will work thanks

Sorry about my poor English I meant I don't know what do next could u give some hint about the formula

I don't next if u could give me so hint about that formula it will be great thanks

Sorry everyone i'm new to java and i have an assingment which i have hand over soon

i just want get an idea how to calculate car insurance premium based on the age,Licence and Engine size
this is my first time come in to this site even so..
if you just give me an hint i will be able to finish the rest my self
thank you very much in advanced
i will be very appreciated your help

here the code that i have so far

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JRadioButton;
import javax.swing.JComboBox;
import javax.swing.JCheckBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JTextPane;
import javax.swing.JTextArea;
import javax.swing.JButton;

public class Testinsurance {

    private JFrame frame;
    private JTextField textField;
    private JTextField textField_1;

     * Launch the application.
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                try {
                    Testinsurance window = new Testinsurance();
                } catch (Exception e) {

     * Create the application.
    public Testinsurance() {

     * Initialize the contents of the frame.
    private void initialize() {
        frame = new JFrame();
        frame.setBounds(100, 100, 629, 481);

        JPanel Mainpanel = new JPanel();
        Mainpanel.setBounds(0, 0, 613, 443);

        JLabel lblNewLabel = new JLabel("Please Enter Your Name:");
        lblNewLabel.setBounds(10, 29, 141, 17);

        textField = new JTextField();
        textField.setBounds(195, 26, 244, 17);

        JLabel lblNewLabel_1 = new JLabel("Please Enter Your Age:");
        lblNewLabel_1.setBounds(10, 75, 141, 14);

        textField_1 = new JTextField();
        textField_1.setBounds(195, 72, 86, 17);
        Mainpanel.add(textField_1); ...