class Employee{ String name; long empNo; int deptNo; char empPosition; int yearsOfExp; float salary; Employee(){ //default constructor name = ""; empNo = 0; deptNo = 0; empPosition = 'E'; yearsOfExp = 0; salary = 0; } Employee(String n, long e, int d){ name = n; empNo = e; deptNo = d; empPosition = 'E'; yearsOfExp = 0; salary = 0; } Employee(String n, long e, int d, char em, int y){ name = n; empNo = e; deptNo = d; empPosition = em; yearsOfExp = y; salary = 0; } public char getPosition(char em){ switch(em){ case 'E': System.out.print("Entry"); break; case 'M': System.out.print("Manager"); break; case 'D': System.out.print("Dirctor"); break; case 'P': System.out.print("Project Leader"); break; default: System.out.print("N/A"); //return em; } return em; } public void calculateSalary(){ } public void print(){ System.out.println("Employee Name: " + name); System.out.println("Employee Number: " + empNo); System.out.println("Department Number: " + deptNo); System.out.println("Position: " + empPosition); System.out.println("Years of Experience: " + yearsOfExp); System.out.println("Salary: " + salary); System.out.println(); } } class EmployeeList{ public static void main(String[] args) { Employee e1 = new Employee("John Doe",515542,10, 'M',2); Employee e2 = new Employee("a",515542,10, 'M',2); Employee e3 = new Employee("a",515542,10, 'M',2); Employee e4 = new Employee("a",515542,10, 'M',2); Employee e5 = new Employee("a",515542,10, 'M',2); e1.print(); e2.print(); e3.print(); e4.print(); e5.print(); } }