Computer Science, asked by sunilasingh802, 6 months ago

Q 27. Write a program to input employee code number, monthly basic pay (in decimals) of a person.
Calculate the following:
65% of monthly basic pay as DA.
21% of monthly basic pay as HRA.
8.33% of monthly basic pay as PF.
Calculate the Gross salary as basic pay + DA + HRA and
Net salary as Gross salary - PF.
Print the results of all above data with headings.​

Answers

Answered by rv21060
1

Answer:

Sorry this answer not did match question

Answered by jainlalita610
2

Answer:

plz make me brainlist...

and ols follow me ..

plzzz....

Explanation:

import java.util.*;

Class employee

{

public static void main (string args[])

{

Scanner sc = new Scanner ( System.in);

System.out.println("Enter the name of the employee");

string nm = in.next();

System.out.println ("Enter the basic salary")

int sal = in.nextInt();

{

double da , hra ,pf, gp =0.00, np=0.00;

da = 0.30*sal;

hra=12.5*sal;

pf=0.10*sal;

gp = sal+ da+hra;

np = gp - pf;

}

System.out.println(" Name of the employee :"+nm);

System.out.println("Basic salary : "+sal);

System.out.println("Gross salary :"+ gp);

System.out.println(" Net salary "+np);

}}

Similar questions