write a java program in which you store the employee name and basic salary calculate HRA @ 15% of basic salary,DA @70% of basic salary ,TA@ 2% of basic salary,PF@ 10% of the basic salary and net salary =basic salary+HRA+DA+TA-PF
akhilarul324:
YES
Answers
Answered by
11
import java.util.Scanner;
public class jsj
{
public static void main(){
Scanner sc = new Scanner(System.in);
String name; double bs, nets, HRA, DA, TA, PF;
System.out.println("Enter Employee Name");
name = sc.next();
System.out.println("Enter Basic Salery");
bs = sc.nextInt();
HRA = 0.15 * bs;
DA = 0.7 * bs;
TA = 0.02 * bs;
PF = 0.1 * bs;
nets = bs + HRA + DA + TA - PF;
System.out.println("THE NET SALERY IS = " + nets);
}
}
Answered by
0
this program may help you out....
Attachments:
Similar questions