a
Write a java program to calculate gross salary and net salary taking the
following data. Consider suitable values for empno, empname and
basic.
DA=50% of Basic
HRA=25% of Basic
PF=10% of Basic.
PT= 100rs
Gross Salary(GS)=DA+HRA
Net salary=GS-PF-PT
Print the salary statement of the employee.
Answers
Answered by
0
Answer:
give some time and tell you....
please
Answered by
4
Answer:
import java.util.Scanner.*;
class employeesalary
{
public static void main(String args[])
{
float basic_salary,da,hra,da1,hra1,GrossPayment;
Scanner scan=new Scanner(System.in);
System.out.println("Enter Basic Salary Of Employee: ");
basic_salary=scan.nextFloat();
System.out.println("Enter Basic DA Of Employee: ");
da1=scan.nextFloat();
System.out.println("Enter Basic HRA Of Employee: ");
hra1=scan.nextFloat();
da = (da1 * basic_salary) / 100;
hra = (hra1 * basic_salary) / 100;
GrossPayment = basic_salary + da + hra;
System.out.println("Gross Salary Of Employee: "+GrossPayment);
}
}
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
Social Sciences,
4 months ago
History,
9 months ago
Business Studies,
1 year ago