Science, asked by hazellighte888, 9 months ago

write a program to create a class employee and input the number of days work and wages per day and 10% increment of total wages to be paid and display the final amount to be paid in Java bluej
Please answer me fast it's urgent!!!​

Answers

Answered by anandujjawal
2

Answer:

Basic Salary <= 10000 : HRA = 20%, DA = 80%

Basic Salary is between 10001 to 20000 : HRA = 25%, DA = 90%

Basic Salary >= 20001 : HRA = 30%, DA = 95%

Answered by Anonymous
4

✌❤❤❤✌❤❤❤✌❤❤❤✌❤❤❤✌

import java.util.*;Class employeepublic 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