0% found this document useful (0 votes)
2 views

class 12 project work

The document outlines a project titled 'Salary Calculator' developed by Vaibhav Kapoor for the AISSCE 2022-23. It details the project's requirements, including hardware and software specifications, and provides an introduction to the application's functionality for calculating salaries based on user input. The document also includes source code snippets and output examples, along with a bibliography of references used in the project.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

class 12 project work

The document outlines a project titled 'Salary Calculator' developed by Vaibhav Kapoor for the AISSCE 2022-23. It details the project's requirements, including hardware and software specifications, and provides an introduction to the application's functionality for calculating salaries based on user input. The document also includes source code snippets and output examples, along with a bibliography of references used in the project.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

.

AISSCE
2022-23 . . ! •

.
. . .;.,_--=----{
r-----------'
----------------------------------------------~--------·----~-'-------- - -- - -•. ·---- ----- ------
-
I ,.;;.
:

INFORMATION
TECHNOLOGY (802)
·PROJECT WORK _
CLASS-12

NAME: VAIBHAV KAPOOR I ' I

· BOARD ROLL NO: /463880~ \ . I


'II I
I
I I .

i:_ _____ ----------------------- --------------------- - - - -------------·_____________________________ .,


I
I
I
.
I

§§ p <42 4 ,.


INFORMATION
TECHNOLOGY
PROJECT FILE
(2022-23)

NAME: VAIBHAV KAPOOR


BOARD ROLL NO.:
r

CERTIFICATE
/
'/
. This is to certify that this project "SA)i!ARY ;
CALCULATOR" was carried out by Vaibhav Kapoor of
class XII-D, roll no. . • He worked 1fflder
my supervision for this proJe~t an~ have completer.fit to
my total satisfaction. ~t ·

---

/
I

( ;·"-v t' -~- ~·'~, · .. . . 'I" ,

:
., •
:.l/)
:.,> ,~ • . ,,
c'. " ·' .--~ : .. .
4i
l1 ./Iii .'I . .
. . ',
,•
"is:- '
·~ :

-
Bamali Banerjee
REQUIREMENTS

• HARDWARE Processor - Intel Core iS


• SOFTWARE Operating System - Windows 10
Net Beans IDE 13
INTRODUCTION

Payroll Calculation is a very commonly used


management application. Here we have created a
Salary Calculator. The basic aim of the application is
to calculate the Salary in Hand based on input
provided by the user.
Analysis: As stated above, the basic aim of the
application is to calculate the Salary in Hand based
on various criteria selected by the user. The criterion
include:
I . Basic Salary input using a text field
2. Designation input using a Combo Box
3. Number of known set of options is required to be
taken
4. Status input using a Radio Button Group (single
option to be selected)
5. Area input using a Radio Button
6. Allowance input using a Check Box (a multiple
options are required to be selected)
fnput,
I

Part from these controls which are used to accept the


we need a f~\Vmore controls as enumerated below:
l . Five butto.~.,
• Calculating the Earnings
• Calculating the Deductions
• Calculating the Salary in Hand
• To reset the form
• For closing the application.
2. Eight text fields
- Four to display the Earnings as DA, HRA, Other and
Total Earnings
- the remaining four to display the Deductions due to
Income Tax, PF, Social Contribution and Total
Deductions.
3. One text field - to display the Sa~ary in Hand.
As soon as the user inputs information regarding the Bas·
Salary, Designation, Status, Area and Allowance, the
CALCULATE EARNINGS button can be clicke n the
click of this button, the DA, HRA, Other and tal
Earnings are calculated and displayed int aisabled text
fields.
Immediately the CALCULATE DED CTIONS button is
enabled and the user can click on t 1s button to see the
deductions due to Income Tax, , Social Contribution
and the Total Deductions in the disabled text fields.
When the deductions are displayed, the CALCULATE
SALARY IN HAND button is enabled. On the click of
this button, the total salary in hand is calculated and
displayed in the disabled text field at the bottom of the
form.
SOURCE CODE
private voidjButton5ActionPerfonned(java.awt.event.ActionEvent evt) {
System.exit(O); II TODO add your handling code here:
}

private voidjButtonlActionPerfonnedGava.awt.event.ActionEvent evt) {


double Basic·
'
double DA, HRA, Others=0, Earnings;

Basic=Double.parseDouble(jTextFieldl.getTextO);
if (jRadioButton 1. isSelectedO)
{

if (jComboBox l .getSelectedlndex()==O )
DA=O.S0*Basic;

else if (jComboBoxl .getSelectedlndexO= I)


DA=0.60*Basic;

else if (jComboBoxl .getSelectedlndexO=2)

DA=0.80*Basic;
else if (jComboBoxl .getSelectedindexO=3)

DA=0.90*Basic;

else

DA=O;

else
DA=IOOO;

if (jRadioButton3 .isSelected())
HRA=4000;

else if (jRadioButton4 .isSelectedQ)


HRA=8000·
'
else

HRA=O·
'
{ ifGCheckBoxl.isSelected0)
Others=3000·,

if GCheckBox2.isSelectedO)
Others=l000·
'
if GCheckBox3 .isSelected())
Others=2000·
'
if (jCheckBox4 .isSelected())
Others=1500;

if (jCheckBox5 .isSelected())
Others=500;

Eamings=DA+HRA+Others;
jTextField2.setText(Double.toString(DA));
jTextField3.setText(Double.toString(HRA));
jTextField4.setText(Double.toString(Others));
jTextField5.setText(Double.toString(Earnings));

jButton2.setEnabled(true);
II TODO add your handling code here:

}
private void jButton2ActionPerfonned(java.awt.event.Action

double BasicDA;
double DA, IT, PF=O, Social=O, Deductions;

DA=Double.parseDouble(jTextField2 etText
BasicDA=Double.parseDouble(jTextFiel .getTextQ)+DA;

if (jRadioButton 1.isSelected())

{
if (BasicDA>=30000)

IT=0.30*BasicDA;
else if (BasicDA>=l5000)

IT=0.20*BasicDA;

else
IT=O.IO*BasicDA;
PF===-0. IO•.
Bas1cDA -
SociaI=2000- '
'
}

else

IT=1000-,

Deductions=IT+PF .
. +Soc1al ;
JTextField6.setTex
.T . t(Double.toString(lT))-
J extf1eld7.setTe '
T . xt(Double.toString(PF))-
J extF1eld8.setTe ,
T xt(Double.toString(Social))·
J extF ield9 setT '
. . ext(Double. toString(Deductions) )·
JButton3. setEnabled(true)·, II TODO add your ,handling code here:
}

private void jButton3ActionPerformedQava.awt.event.ActionEvent evt) {

double Basic,Eamings,Deductions InHand·


' '
Basic=Double.parseDouble(jTextFieldl.getText());

Eamings=Double. parseDouble(jTextField5 .getText());

Deductions=Double.parseDouble(jTextField9.getTextO);

InHand=Basic+Eaming~Deductions;
II TODO add your handling code here:
jTextFieldlO.setText(I)ouble.toString(InHand));

private void jButton4ActionPerformed(java.awt.event

jTextFieldl .setText("O");
jTextField2.setText("O");
jTextField3.setText("O"),
jTextField4.setText("O");

jTextField5.setText("O");

jTextfield6.setText("O");

jTextField7.setText("O");

jTextField8.setText("0");
jTextField9.setText("0");
jTexw·
. ieIdlO.setText("O");
JComboB oxl .setSelectedlndex(O);

jRadioButtonl.setSelected(false);
jRadioButton2.setSelected(false);
jRadioButton3 .setSelected(false);
jRadioButton4. setSelected(false);

jCheckBox 1. setSelected(false);
jCheckBox2 .setSelected(false);
jCheckBox.3. setSelected(false);
jCheckBox4 .setSelected(false);

jCheckBox5 .setSelected(false);
jButton2.setEnabled(false);
jButton3. setEnabled(false);
OUTPUT

D X

BASIC SALARY: 0
-·- ---
STATUS: @ PERMANENT

0 TEMPORARY

DESIGNATION: l; a-;;a~~3
AREA: 0 RURAL O URBAN
ALLOWANCE: 0 CAR O UNIFORM O GYM O MOBILE O ENTERTAINMENT
----- -
t CALCULATE EARNINGS j c~.LCULA.TE DEDUCTIONS

DA: 0 TAX: 0
.....-
HRA: 0 0

OTHER 0 SOCIAL CONTRIBUTIONS: 0

TOTAl EARNINGS: TOTAL DEDUCTIONS: 0

C.!.LCUU, TE s.:..L~Y Ir J HANO


C RESET ]l STOP j
SALARY IN HAND: 0
I
OUTPUT

fj
X

~IC SALARY: 0

STATUS: @ PERMANENT

Q TEMPORARY
DESIGNATION: ( manager • )

AA.EA:. 0 RURAL U URBAN

ALLOWANCE: D CAR D UNIFORM D GYM O MOBILE O ENTERTAINMENT


[' -_ _
CAL
_ CU
_ LA
_ ._
TE_EAR
_ N _IN
_G_s_ __,,j CALCUU\TE DEDUCTtONS

DA: 0 TAX:.

HRA: 0 0

OTHER: 0 SOCIAL CONTRIBUTIONS: 0

TOTAL EARNINGS: 0 TOTAL DEDUCTIONS:

CALCULATE ~,...LARY trJ HAuo {'--__RE


_ s_
ET_ _) l'-__s_:ro_P___]
SALARY IN HAND: 0
'
J
BASIC SALARY: 100000

STATUS: @ PERMANENT

0 TEMPORARY

DESIGNATION: lm; ager •)


AREA: V RURAL @ URBAN

ALLOWANCE: (lJ CAR O UNIFORM GYM @J MOBILE (lJ ENTERTAINMENT

( CALCULATE EARNINGS :: 1t----'---CALCUL.ATE DEDUCTIONS

DA 50000.0 INCOME TAX:

HRA 8000.0
v•
'
'
.I

OTHER: 500.0

TOTAL EARNINGS: 58500.0 EDUCTIONS:

-- - - -- ---- - - ..
l CALCULATE SALARY IN HAND j , . _ _ - , I f . -_ _ ___.
l·..___ _s_ j
To_P_ _

SALARY IN HAND:
BASf C SALARY: 100000

STATUS: @ PERMANENT

0 TEMPORARY

DESIGNATION: lmanager
AREA: U RURAL O URBAN

ALLOWANCE: CAR O UNIFORM GYM MOBILE ENTERTAINMENT

l___c_AL_c_u_LA_TE_ EAR
_ N_1N_G
_s_ ____..J [..__ _c_AL_c_u_LA
_TE
_ o_E_o_u_c_
r,_o_
N___
s j
DA:
----
50000.0 INCOMET~ ~5000.0

HRA: 0.0
PF: 5000.0

OTHER: 500.0 SOCIAL CONTRIBUTIONS: 2000.0

TOTAL EARNINGS: 50500.0 IONS: •2000.0

[ CALCULATE SALARY IN HAND J -----,.L---J P _ _ _j


' -_ _S_T_O_

SALARY IN HAND: 88500.0


BIBLIOGRAPHY
1. Java by E Balaguruswamy

2. Informatics Practices by Sumita Arora

3. Learning Java by Brainwave Informatics System

You might also like