2. Write a program to calculate the gross salary of an employee when
Basic Salary = Rs.8600
DA = 20% of Salary
HRA = 10% of Salary
CTA = 12% of the Salary.
Gross Salary = (Salary +DA+HRA+CTA)
Answers
Answered by
4
Public class grossSalary
public static void main(Stringargs[])
{
double Basicsalary=8600.0;
double DA=20/100*Basicsalary;
double HRA =10/100*Basicsalary;
double CTA=12/100*Basicsalary;
System.out.println("Gross Salary ="+Basicsalary+DA+HRA+CTA);
}
Hope it helps you
Mark me as brainliest
Similar questions