Xtra Care Hospital Bill Generator

 

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

        String Name = t1.getText();
         int rate=0;
         int billamount;
         int n= Integer.parseInt(t2.getText());
        
                 if (rb1.isSelected())
                     r=300;
              else     if (rb2.isSelected())
                     r=4000;
              else     if (rb3.isSelected())
                     r=2000;
              else     if (rb4.isSelected())
                     r=1000;
        
                ba=n*r;
                t3.setText(""+ba);
}



Comments

Popular posts from this blog

Xtra Care Hospital Bill Generator

Net Beans Program to Generate Prime No. upto a Limit

Net Beans Program to Find Factorial of A number