Twitter Feed Facebook Google Plus Youtube

Adsense responsive

Recent Post below header

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. Programming is combination of intelligent and creative work. Programmers can do anything with code. The entire Programming tutorials that you mention here on this blog are awesome. Beginners Heap also provides latest tutorials of Programming from beginning to advance level.
    Be with us to learn programming in new and creative way.

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

    java tutorial

    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