Question: Exercise 2 ( section 2 0 ) : Create a Java project to manage information about employees in a company. You will define an Employee

Exercise 2(section 20):
Create a Java project to manage information about employees in a company. You will define an "Employee" class, and each employee will have a unique employee ID, a name, and a salary. The Employee class should use instance variable ID for each employee starting from ID=1001. That is, the first employee object gets ID =1001, the next one gets 1002, and so on.
Write a tester program (main class) to read employee information from an input file. The input file format should include the number of employees in the first line, and each subsequent line should contain the employee's name and salary (see sample input below). The program should read and create Employee objects for each employee, store them in an array, and then process the array to find the average salary, and display the employees' data of only those who paid less than average.
 Exercise 2(section 20): Create a Java project to manage information about

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!