w a p in Java to calculate the gross salary of an employer when basic salary is equal to Rs9600,Da is equal to 20% of salary; HRA is equal to 10% of salary, CTA is equal to 12% of salary gross salary is equal to salary + DA+ HRA+CTA
Answers
Answered by
0
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