Write a program to input the basic salary of an employee to find and display the gross salary and net salary using the information given below:
hra= 12% of basic
da=80% of basic
ta=10% of basic
pf=12% of basic
gross salary =hra +da+ta+pf+basic
net salary -gross salary -pf
Answers
Answered by
0
Answer:
Here is the program
Explanation:
public class KboatSalary
{
public static void main(String args[]) {
int sal = 8600;
double da = 20 / 100.0 * sal;
double hra = 10 / 100.0 * sal;
double cta = 12 / 100.0 * sal;
double gross = sal + da + hra + cta;
System.out.println("Gross Salary = " + gross);
}
}
Similar questions