0

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();
                    window.frame.setVisible(true);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

    /**
     * Create the application.
     */
    public Testinsurance() {
        initialize();
    }

    /**
     * Initialize the contents of the frame.
     */
    private void initialize() {
        frame = new JFrame();
        frame.setBounds(100, 100, 629, 481);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().setLayout(null);

        JPanel Mainpanel = new JPanel();
        Mainpanel.setBounds(0, 0, 613, 443);
        frame.getContentPane().add(Mainpanel);
        Mainpanel.setLayout(null);

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

        textField = new JTextField();
        textField.setBounds(195, 26, 244, 17);
        Mainpanel.add(textField);
        textField.setColumns(10);

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

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