0% found this document useful (0 votes)
28 views1 page

Java Practice

The document describes a Java program that calculates an employee's salary including DA at 150% of basic salary, HRA at 20% of basic salary, TA at 10% of basic salary, and TDS at 10% of net salary by taking the basic salary as input from the user.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views1 page

Java Practice

The document describes a Java program that calculates an employee's salary including DA at 150% of basic salary, HRA at 20% of basic salary, TA at 10% of basic salary, and TDS at 10% of net salary by taking the basic salary as input from the user.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

//write a program to calculate salary of employee consider da 150 % hra 20% ta 150%

hra 20 % ta 10% of the basic salary and tds 10% of the net salary//
import java.io.*;
import java.util.*;
public class emp()
{
public static void main(String args[])throws exception
{
double basic,da,hra,ta,eds,gross;
system.out.Println("Enter basic salary of employee\n");
Scanner obj1=new scanner(system.in);

You might also like