Looking for a Tutor Near You?

Post Learning Requirement »
x

Choose Country Code

x

Direction

x

Ask a Question

x

x
x
x
Hire a Tutor

ICSE Important Questions

Loading...

Published in: Java And J2EE
1,311 Views

Java programs for class 9 and 10

Jayeeta B / Kolkata

3 years of teaching experience

Qualification: MCA

Teaches: All Subjects, Computer, Computer Science, School Level Computer

Contact this Tutor
  1. Create a class named pay and write a program(source code) in JAVA to accept basic pay of an employee and calculate the net salary according to the following formula. Gross salary=Basic Salary=D.A.+H.R.A Deduction=PF+lT Net salary=Gross salary-Deduction D.A.=400/0 of, H.R.A.=300/0 of Basic salary , Income Tax=2% of Basic Salary Use meaningful variables. class pay public void display(double b) double double double double double grosssalary=b+DA+HRA; double deduction-PF +1 T; double netsalary=grosssalary-deduction; System.out.println("netsalary is" +netsalary); OUTPUT netsalary is156.0 P.F.=12% Basic Salary