Professional Documents
Culture Documents
14)
15)
16)
17)
18) write the java expression for the given mathematical expression
a) (a+b)
b) a/b2 c) (a+b)*(a-b) d) 3x2+2/5
[ 4 marks ]
[ 4 marks ]
SECTION B
Answer all the questions [ 15 marks each ]
1)
Write a java program to input employee name and basic salary and calculate the gross pay and net pay based on the following.
DA = 40% of basic, HRA = 10% of basic, PF = 8.33% of basic, Gross = Basic + HRA+ DA, Net = Gross PF.