Computer Science, asked by dharmaveerasari, 4 months ago

A company announces revised Dearness Allowance (DA) and Special Allowances
(SA) for their employees as per the tariff given below:

Attachments:

Answers

Answered by bansal78
9

Explanation:

import java. util. *;

class company

{

public static void main(String args[])

{

Scanner in=new Scanner (System.in);

int sum, da=0,sa=0;

System.out.println("enter the sum of money ");

sum=in.nextInt();

if(sum<=10000)

{

da=10/100*sum;

sa=5/100*sum;

}

elseif(sum>10000&&sum<=20000)

{

da=12/100*sum;

sa=8/100*sum;

}

elseif(sum>20000&&sum<=30000)

{

da=15/100*sum;

sa=10/100*sum;

}

else

{

da=20/100*sum;

sa=12/100*sum;

}

System.out.println(" sum:"+sum) ;

System.out.println("dearness allowance:"+da) ;

System.out.println("special allowance:"+sa) ;

}

}

If it helps, please mark as brainliest.

Answered by rupeshkumar897825
1

Answer:

Hope it helps you .

Thank you .

Attachments:
Similar questions