Computer Science, asked by garimajp82007, 8 months ago

WAP to input basic salary of an employee to calculate and print the net pay using the given formula:
Net pay=basic salary +DA+TA+HRA-IT. Where
DA = 30% of basic salary
TA = 25% of basic salary HRA=15% of basicsalary IT = 12% of basic salary
WRITE THE PROGRAM IN JAVA(❁´◡`❁)

Answers

Answered by MANAN8055
0

Answer:bala bala

Susugeiwfwuqgqjsusfwvwjaygw

Explanation:

Answered by cbss20050641
1

Answer:

refer explanation and please mark as brainliest

Explanation:

import java.util.*;

class Salary

{

void main()

{

Scanner obj=new Scanner (System.in);

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

int basic=obj.nextInt();

double Net,DA,TA,HRA,IT;

DA=0.3*basic;

TA=0.25*basic;

HRA=0.15*basic;

IT=0.12*basic;

Net=basic+DA+TA+HRA-IT;

System.out.println("Net pay="+Net);

}

}

Similar questions