Professional Documents
Culture Documents
Tarun Kumar Dansena
Tarun Kumar Dansena
Tarun Kumar Dansena
Submitted By:
DECLARATION
1
I hereby declare that the project entitled “PROJECT ON NETBEANS
” submitted for my original work and the project has not formed the
2
ACKNOWLEDGMENT
The author would like to express a deep sense of gratitude and thank
Principal of School, without whose permission, wise counsel and able
guidance, it would have not been possible to carry out my project in
this manner.
11THBIO
3
CERTIFICATE
TARUN KUMAR
DANSENA
4
REQUIREMENTS HARDWARE &
SOFTWARE
5
TABLE OF CONTENTS
5 CONCLUSION 15
6
BASIC CALCULATOR
FOR ADDITION :
float a = Float.parseFloat(num1.getText());
float b = Float.parseFloat(num2.getText());
float total = a+b;
result.setText(Float.toString(total));
FOR SUBSTRACTION :
float a = Float.parseFloat(num1.getText());
float b = Float.parseFloat(num2.getText());
float total = a-b;
result.setText(Float.toString(total));
FOR MULTIPLICATION :
float a = Float.parseFloat(num1.getText());
float b = Float.parseFloat(num2.getText());
float total = a-b;
result.setText(Float.toString(total));
FOR DIVISION :
float a = Float.parseFloat(num1.getText());
float b = Float.parseFloat(num2.getText());
7
float total = a/b;
result.setText(Float.toString(total));
FOR RESET
result.setText("");
FOR STOP :
System.exit(0);
OUTPUT:
PRICE CALCULATOR
8
CODING:
String Price = price.getText();
int p = Integer.parseInt(Price);
String Quantity = quantity.getText();
int q = Integer.parseInt(Quantity);
int total = p*q;
result.setText(Integer.toString(total));
FOR STOP :
System.exit(0);
9
CONTROL NAME VARIABLE NAME VALUE
OUTPUT:
DISCOUNT CALCULATOR
10
FOR CALCULATING FINAL AMOUNT :
float bill = Float.parseFloat(b.getText());
int index = r.getSelectedIndex();
if(index==0){
result.setText(Float.toString(bill - bill*30/100));
}
else if(index==1){
result.setText(Float.toString(bill - bill*20/100));
}
else if(index==2){
result.setText(Float.toString(bill - bill*10/100));
}
else if(index==3){
result.setText(Float.toString(bill));
FOR RESET
result.setText("");
11
jTextfield2 Customer type float
OUTPUT:
12
FOR CALCULATING INTEREST:
float priciple = Float.parseFloat(p.getText());
float rate = Float.parseFloat(r.getText());
float time =Float.parseFloat(t.getText());
float interest = (priciple*rate*time)/100;
result.setText(Float.toString(interest));
FOR RESET
result.setText("");
p.setText("");
r.setText("");
t.setText("");
FOR STOP :
System.exit(0);
13
jButton1 Reset Null
OUTPUT:
CONCLUSION
14
WE WOULD LIKE TO THANK NARENDRA SIR FOR HIS
GUIDENCE DURING THE COMLETION OF THIS “PROJECT ON
NETBEANS” . IT REALLY HELPED US TO LEARN ABOUT
CODING FUNDAMENTALS AND HOW TO CREATE
CALCULATOR , SIMPLE INTEREST CALCULATOR ,
DISCOUNT CALCULATOR , PRICE CALCULATOR . WE
WOULD BE GRATEFUL IF NARENDRA SIR HELP US IN OUR
NEAR FUTURE .
THANK YOU
15