Computer Science, asked by sahilooo1456, 3 days ago

A company has 120 employees who are divided into four grades as follows:
Grade Basic( Rs. per month) D.A.(% of Basic) H.R.A.(% of Basic)
1 10,000 or more 40% 30%
2 5,000 - 10,000 40% 25%
3 < 5,000 but > 2,000 30% 20%
4 2,000 or less 30% 15%
If the salary which is the total of Basic, D.A., and H.R.A., is above Rs.50,000 per month then Income Tax at the rate of 30% of the annual salary exceeding 50,000 is deducted on monthly basis at source. Taking name of the employees and the Basic(monthly) pay as inputs, a pay slip, which contains Name, Basic monthly pay, DA, HRA, Monthly Income Tax and Net Monthly Salary, for each employee is to be printed. Write a java program to perform this job.

Answers

Answered by 11096
0

Answer:

Explanation:

Accept the value of A, B & C then calculate this formula.

       R  =  6.5 (A + B)2 - 7.3 (B + C)1/2

                   (A + C)1/2

class ques1

{

 public static void main(String args[])

 {

   int a = 2,b = 3,c = 4;

   double r;

double x = 6.5*Math.pow((a+b),2);

double y = 7.3*Math.sqrt(b+c);

double z = Math.sqrt(a+c);

 r = (x-y)/z;

 System.out.println ("The answer is : "+r);

 

Similar questions