Computer Science, asked by mangilalmahato979, 3 months ago

Write a program in Java to input name and basic salary of an employee. Calculate and display the gross salary

and net salary when:

da = 30% of basic

hra = 12.5% of basic

pf = 10% of basic

gross = basic + da + hra

net pay = gross – pf​








plz ans fast

Answers

Answered by mail2rheaagr
0

Answer:

{

public static void main(String arg[])  

{

    double grossSalary=10000;

    double incomeTax=1000;  

    double  providentFund=800;    

    double professionalTax=500;

    double netSalary=grossSalary-(incomeTax+providentFund+professionalTax);

     System.out.println("Net Salary is="+netSalary);

                  }

}

Similar questions