Sl. No. Programs NOS Signature: Index
Sl. No. Programs NOS Signature: Index
1
1.Program to find the largest of 3 numbers
3
4
2.Program to generate a DATA FORM
5
6
3.Program to perform ARITHMETIC
OPERATIONS
7
private void rembtnActionPerformed(java.awt.event.ActionEvent evt) {
int n1=Integer.parseInt(n1tf.getText());
int n2=Integer.parseInt(n2tf.getText());
oplbl.setText("%");
int res=n1%n2;
restf.setText(""+res);
}
8
9
10
4. Program to find theFACTORIAL of a
number
11
12
5. Program to print a series using while-do
statement.
13
14
6. Program to display text
15
16
7.Program to convert DIGIT TO WORD
18
8.Program to print natural numbers and its
sum
20
9. Program on REGISTRATION FORM
21
frb.setSelected(false);
nametf.setText(null);
}
if (mrb.isSelected()){
detta.append("Name : "+ n.toUpperCase()+"\n" );
detta.append("Gender : Male\n");
detta.append("Qualification : "+q+"\n" );
detta.append(" Hello!! "+n.toUpperCase()+ "\nYou are registered Successfully"
);
}
if (frb.isSelected())
detta.append("Name : "+ n.toUpperCase()+"\n" );
detta.append("Gender : Female\n");
detta.append("Qualification : "+q+"\n" );
detta.append(" Hello!! "+n.toUpperCase()+ "\nYou are registered Successfully"
);
}
22
23
10. Program on PASSWORD FIELD
24
25
1.Program on Ice-Cream and its cost using
LISTbox
26
27
2. Program on Selection of city and no. of
days using combobox
int len=citycb.getItemCount();
boolean exists=false;
for(int i=0;i<len;i++){
String item=(String) citycb.getItemAt(i);
exists=true;
break;
}
if (exists=false)
citycb.addItem(t);
sellbl.setText("Selected City :"+t);
}
28
29
30