import java.io.*; import java.util.Scanner; public class Employees { Scanner scan=new Scanner(System.in); String Fname; int EmpID; int DOB; double Allowance; double Salary; public void getDetails(){ System.out.println("Enter the first name"); Fname=scan.next(); System.out.println("Enter the ID number"); EmpID=scan.nextInt(); System.out.println("Enter the date of birth"); DOB=scan.nextInt(); System.out.println("Enter the salary"); Salary=scan.nextDouble(); Allowance=0.6*Salary; } public void printReport(){ System.out.println(Fname+"\t"+EmpID+"\t"+calGross()+"\t"+calPayee()+"\t"+calNetIncome()); } public double calGross(){ return Salary + Allowance; } public double calPayee(){ ...
OOP,PHP,Web Development,MYSQL,Yii,Bootstrap...Blog.