Pages

Adsense responsive

Friday, 22 February 2013

JAVA PROGRAM: TO CALCULATE SIMPLE INTEREST



CODING OF SIMPLE INTEREST BUTTON(jButton1)
        float p,r,t,si;
        p=Float.parseFloat(jTextField1.getText());
        r=Float.parseFloat(jTextField2.getText());
        t=Float.parseFloat(jTextField3.getText());
        si=(p*r*t)/100;
        jTextField4.setText(" "+si);


CODING OF CLEAR BUTTON(jButton2)
        jTextField1.setText(" ");
        jTextField2.setText(" ");
        jTextField3.setText(" ");
        jTextField4.setText(" ");


CODING OF EXIT BUTTON(jButton3)

        System.exit(0);

CODING

RUNNING

We have used NetBeans IDE 7.2.1. To download it visit www.netbeans.org


For any query or suggestion please comment below...

6 comments:

  1. That is really nice to hear. thank you for the update and good luck.

    java tutorial

    ReplyDelete
  2. oh yeah,it is really helpful

    ReplyDelete
  3. Thanks for sharing amazing information !!!!!!
    Please keep up sharing.

    ReplyDelete
  4. The blog article extremely amazed to me! You're composing is great. In this I took in a ton! Much obliged to you!

    ReplyDelete