Employee Payroll Management System Using Core Java Concepts
Employee Payroll Management System Using Core Java Concepts
A STYDY ON
MICRO PROJECT
Submitted in March 2020 by the group of 4 students
Three Years Diploma Programme in Engineering & Technology of Maharashtra State Board of
Technical Education, Mumbai (Autonomous)
ISO 9001:2008 (ISO/IEC-27001:2013)
At
1
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI
Certificate
Technology at [ your college name] , has completed the Micro Project satisfactorily in
Subject Java Programming (22412)in the academic year 2019-20 as per the MSBTE
Seal of Institute
2
Index:
1 Introduction 4
2 Action Plan 5
4 Flow Chart 8
5 Code 9-12
6 Result(OUTPUT) 12-13
7 Conclusion 14
8 References 14
9 Evaluation Sheet 15
I. Introduction:
3
Project Name:
Employee Payroll Management System
With the help of core java concepts we will create a application to calculate the total
deductible, taxes and the final salary of an employee.
We will use different classes, interfaces and exception handling blocks.
We will use different packages and control blocks for the various requirements of the project.
Classes Used:
Keywords class;
We use this class to declare all the variables used in the calculation of end salary of the
employees
Employee class:
There are four separate Methods:
1 accept()
We accept the names of the manager, employee, the number of hours the employee has
worked. We also accept the provident fund amount as well as the profession tax amount.
2 hours()
We use an if() loop to check if the employee has worked the required amount of hours
according to the TOS(Terms of Service).
3calculate()
We calculate the total deductions, total pay as well as the gross salary resulting in the final
salary of the employee.
4 display()
We display all the details of the employee as well as his/her salary.
4
5
2.0FlowChart:
6
3.0 Code:
7
import java.util.Scanner;
import java.io.*;
class keywords
{
double noofemp;
double company_rate = 400;
double noofhours;
double house_rent_allowance = 120000;
double company_rate_allowance = 100000;
double provident_fund;
double profession_tax;
double Insurance_premium;
double pay;
double gross_salary;
double fed_tax = 7.1;
double state_tax=1.8;
double tax;
double total_deductions;
String emp;
String Manager_name;
Scanner sc = new Scanner(System.in);
}
class InvalidHoursException extends Exception
{
public InvalidHoursException()
{
System.out.println("Total Number of hours worked less than TOS.");
}
}
8
class Employee extends keywords
{
public void accept()
{
System.out.println("|Enter the Manager's name:");
Manager_name = sc.nextLine();
System.out.println("|Enter the employee's names :");
emp = sc.nextLine();
System.out.println("enter the total hour's worked");
noofhours= sc.nextDouble();
System.out.println("Enter your provident fund amount:");
provident_fund = sc.nextDouble();
System.out.println("Enter your profession tax amount:");
profession_tax = sc.nextDouble();
}
public void hours()
{
try
{
if(noofhours<100)
{
throw new InvalidHoursException();
}
}
catch(InvalidHoursException e)
{
System.out.println(e);
}
}
9
pay = noofhours * company_rate;
tax = (fed_tax + state_tax)*1000;
total_deductions = provident_fund + profession_tax+Insurance_premium+tax;
gross_salary = pay +house_rent_allowance+company_rate_allowance -
total_deductions;
class test
{
public static void main(String args[])
{
Scanner s = new Scanner(System.in);
Employee e = new Employee();
int noofemp;
System.out.println("|Enter the no of employees'");
10
noofemp = s.nextInt();
int x;
for(x= 1;x<=noofemp;x++)
{
e.accept();
e.calculate();
e.display();
}
}
4.0Result:
11
5.0Conclusion;
We learn the use of the basic concepts of Java Programming and how to implement them in a basic command
line programming for a employee payroll Management System.
12
We learn how to implement control structures.
We also use various methods to accept and calculate the payroll of the employee’s in this project.
We learn various topics such as Exception handling, Data abstraction and data encapsulation
6.0References:
Stack Overflow.
Wikiipedia.
We3school.com
Oracle.com
Reddit: /r java
Title of Project:
The work will be distributed among 4 students involved in the group. To complete the Project “To create a
program on Employee Management System”, programming data will be collected from reference books, and
internet with related algorithms. A data flow diagram as well as a flowchart will be created The data will be
analyzed and interpreted. Finally the data will be organized and presented in the form of Program.
1.Action Plan:
01 Laptop/Computer i-3,4gb,windows7 1 -
Command prompt, 1 -
02 Internet and Software
notepad
Name of Team Members:
15