Write aJava Programnamed EmployeeRecords that simulates a company's HR system. Theprogram reads a list of employee ids, names, and salaries from a file a3q1.txt, and stores theinformation in parallel array lists ids, names, and salaries.Sample input (a3q1.txt)132 Dumbledore 90000465 Lupin 60000443 McGonagall 75000124 Snape 70000337 Sprout 62000
retrieveEmployeeRecord(...) that accepts the array list of employee IDs and anemployee ID to find, and returns the index of the entry.●reportBySalary(...) that accepts all 3 of the array lists and a minimum salary, anddisplays the list of employees that meet the criteria.Sample output 1:Make a selection:[A] Retrieve employee information[B] Display report by salaryAEnter the employee number:465Name: LupinSalary: 60000end of programSample output 2:Make a selection:[A] Retrieve employee information[B] Display report by salaryBEnter the minimum salary:70000Employees with salary of 70000 or higher:132 Dumbledore, Salary: 90000443 McGonagall, Salary: 75000124 Snape, Salary: 70000end of program
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here