Java

Employee Salary Calculation using Java Swing

This tutorial will teach you  to calculating the employee salary calculation using java .This type of projects java is so imponent those who want to be good java developer. You must get java project ideas here.

Features of the Project

Input the employee name and the basic salary calculate and display the netsalary using following condition

  • if the basic salary is more than 50000 then include 10% tax.
  • if the basic salary is more than 30000 then include 5% tax.
  • otherwise no tax.

Paste the code inside the ok button

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) 
{                                         
        double salary,tax,netsal;   
        salary = Double.parseDouble(txtsal.getText());        
        
        if(salary > 50000)
        {
           tax =  salary * 10/100;
        }
        else if(salary > 35000)
        {
             tax =  salary * 5/100;
        }
        else
        {
            tax =  0;
        }
        txttax.setText(String.valueOf(tax));   
        netsal = salary - tax;      
        txtnetsal.setText(String.valueOf(netsal));
    }

Paste the code inside the Clear button

txtsal.setText("");
txttax.setText("");
txtnetsal.setText("");
txtsal.requestFocus();

Paste the code inside the Exit button

System.exit(0);

i have attached the video link below. which will do this tutorials step by step.

 

 

admin

Recent Posts

Employee Working Hours Calculation System using C#.net

Initialize the employee number, Hourswork,and Hoursrate to calculate a grosswage use the following condition. if…

3 days ago

Java Payroll System Calculate Employee Overtime

Act as a Java developer to create a program that calculates the gross wage for…

5 days ago

Employee Working Hours Calculation System using Java

Initialize the employee number, Hourswork,and Hoursrate to calculate a grosswage use the following condition. if…

6 days ago

Laravel 11 School Management System

In this tutorial, we will teach you how to create a simple school management system…

2 weeks ago

How to Make Admin Panel Using React MUI

I have design the Admin Basic templete using React MUI Design Admin Dashboard and Login.Here…

3 weeks ago

Install Laravel Breeze for Authentication Using Laravel 11

In this tutorial ,i am to going teach the Laravel Breeze.Laravel Breeze provides a simple…

4 weeks ago