Page 96 - IP
P. 96

code for result button :

               private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


               double Num1,Num2;

               Num1=Double.parseDouble(jTextField1.getText());


               Num2=Double.parseDouble(jTextField2.getText());

               if(Num1>Num2)


                 JOptionPane.showMessageDialog(this,"Num1 is Greater");


                       else

                 JOptionPane.showMessageDialog(this,"NUm2 is Greater");


               }







               Q7. To find total, percentage and grades of five subjects.
   91   92   93   94   95   96   97   98   99   100   101