CODING OF ARITHMETIC MEAN BUTTON(jButton1)
float num1,num2,num3,am;
num1=Float.parseFloat(jTextField1.getText());
num2=Float.parseFloat(jTextField2.getText());
num3=Float.parseFloat(jTextField3.getText());
am=(num1+num2+num3)/3;
jTextField4.setText(" "+am);
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.3. To download it visit www.netbeans.org
For any query or suggestion please comment below...
What a great presentation! I agree with you that each could be its own lesson for students and they would be engaging and fun! Actually, I start my next semester of courses in April and this would be a great introduction lesson to get my adult students speaking!
ReplyDeletepresentations