Write a class with name employee and basic as its data member, to find the
gross pay of an employee for the following allowances and deduction. Use meaningful variables. Dearness Allowance = 25% of the Basic Pay House Rent Allowance = 15% of Basic Pay Provident Fund = 8.33% of Basic Pay Net Pay = Basic Pay + Dearness Allowance + House Rent Allowance Gross Pay = Net Pay − Provident Fund
Answers
Answered by
2
Answer:
⟹
⟹24x 2 +32x−3x−4=0
⟹8x(3x+4)−1(3x+4)=0
⟹(3x+4)(8x−1)=0
x=−3/4
Answered by
6
Answer:
import java.util.*;
public class Brainly
{
static void main()
{
Scanner sc=new Scanner(System.in);
float basic,da,hra,pf,np,gp;
System.out.println("Enter the basic pay of the employee:");
basic=sc.nextFloat();
da=(float)25/100*basic;
hra=(float)15/100*basic;
pf=(float)8.33/100*basic;
np=basic+da+hra;
gp=np-pf;
System.out.println("Gross Pay:"+gp);
}
Similar questions