Computer Science, asked by akhilarul324, 1 year ago

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
akhilarul324: from 9 th
akhilarul324: do u know the answer
akhilarul324: plz can u write the program

Answers

Answered by JoshuaSam
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 snrebekah060
0

this program may help you out....

Attachments:
Similar questions