Posts

Showing posts from 2017

Net Beans Program to Check Given Number Is Palladrom Number or Not

Image
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)  {                                                         R.setText("");         int N = Integer.parseInt(t1.getText());         int a1 = N;         int q,r;                while (N!=0)         {             q= N/10;             r=N%10;             N=q;    ...

Net Beans program To Check Whether Given Number is Armsrong no. or not

Image
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)  {                                                         int N = Integer.parseInt(t1.getText());         int a1 = N;         int q,r,c=0;         while (N!=0)          {             q= N/10;             r=N%10;             N=q;             c= c+(r*r*r);        ...

Xtra Care Hospital Bill Generator

Image
1.                    Xtra care hospital has computerized its billing . A new bill is generated for each patient. The hospital allows four different types of patients take admission.   The daily charges are based on the type of patient. The following is the data entry screen used to generate the bill at the time of discharging the patient. Patient Type Daily Charges OPD 300 ICU 4000 Private 2000 Dormitory 1000   private void CalculateActionPerformed(java.awt.event.ActionEvent evt)  {                                               ...

Net Beans Program to Find Factorial of A number

Image
private void CalculateActionPerformed(java.awt.event.ActionEvent evt) {                                                          double N= Double.parseDouble(t1.getText());         double F=1;                           for(double i=N; i>=1;i--)                           {                                     F=F*i;      ...

Net Beans Program to Generate Prime No. upto a Limit

Image
  private void CheckActionPerformed(java.awt.event.ActionEvent evt)   {                                                      int N = Integer.parseInt( t1 .getText());                 int i,p ;                                   if (N==1)                                          r.setText("One Is Unique Number");                                  for...

Net Beans Program to Check a Number Whether is it Prime or Not.

Image
        private void CheckButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                         int N= Integer.parseInt(t1.getText());              int i;              for(i=2;i<=N/2;i++)                    {                                 if(N%i==0)                                      ...