import
java.io.*;
public
class employee
{
float basic_pay;
public static void main(String args[])
throws Exception
{
InputStreamReader in = new
InputStreamReader(System.in);
BufferedReader br = new
BufferedReader(in);
employee e=new employee();
System.out.print("Enter
Basic Pay : ");
e.basic_pay=Float.parseFloat(br.readLine());
float DA=0.25f*e.basic_pay;
float HA=0.15f*e.basic_pay;
float PF=0.0833f*e.basic_pay;
float NP=e.basic_pay+HA+PF;
float GP=NP-PF;
System.out.println("\n");
System.out.println("Net
pay : "+NP);
System.out.println("Gross
Pay : "+GP);
}
}
No comments:
Post a Comment