Void calculateNetPay(Employee emp) { for each emp1 in emp { emp1.NetPay=(emp1.BasicPay+emp1.HRA)-(emp1.PF+emp1.TAX); } }