PLSQL program to calculate the gross salary of an employee

PLSQL Program for gross salary

In this article, We will see how to calculate the gross salary of an employee using plsql program.

What is Gross Salary?

The workers who are paid for their services are offered gross payment as their CTC ( cost to company). Cost to the company is the quantum that the company will have to dodge on an hand for a specific time. But, the point to remember then’s that cost to the company is noway equal to the quantum of plutocrat one gets to take home.

In nonfictional terms, Gross Payment is the yearly or monthly payment before any deductions are made from it.
OR

A gross payment is a gratuity and EPF ( hand provident fund) abated from the cost to the company. The factors of Gross payment consists of the following
Basic Salary.

  • House rent allowance
  • Special Allowance
  • Conveyance Allowance
  • Educational Allowance
  • Medical allowance
  • Leave Trip allowance, etc.

PLSQL program to calculate the gross salary of an employee when
Basic Salary is rupees 8600

Formula For Grass Salary

Gorss Salary = Salary+Da+Hra+Cta

PLSQL Program to calculate grass salary

public class EmpSalary
{
    public static void main(String args[]) {
        int sal = 8600;
        double da = 20 / 100.0 * sal;
        double hra = 10 / 100.0 * sal;
        double cta = 12 / 100.0 * sal;
        double gross = sal + da + hra + cta;
        System.out.println("Gross Salary = " + gross);
    }
}

You May Also Like

Leave a comment