Create an Eclipse Java project that reads in the names and postal (Zip) code data for individuals from the attached "employee-2.txt  Download employee-2.txt" file (note: you need to add the text file with the exact file name to the root "project folder" of your Eclipse Java project, not the "src" folder). In the attached text file, edit the last row manually to add your own First Name, Last Name and Zip code. Your project should read in the employee data provided in the text file and store the data into a LinkedList data structure, for which, you need to write a Java class named "Employee.java" that defines a first name (type String), a last name (type String), a postal code (type int or String), an Employee "constructor" and a toString() method. You may optionally define "setters" and "getters" methods in the "Employee.java" class.  You should write a separate driver class named "EmployeeListDriver.java" to implement the main() method, the main() method is where you should create the LinkedList and all related operations. Your project should have the following two Java files in the "src" folder, and the given text file inside the root (project) folder.  Employee.java EmployeeListDriver.java  In the attached text file, each line contains two strings followed by an integer value, each separated by a tab character. Each line of data in the attached text file should be read in to "construct" an Employee object as defined in your Java class "Employee.java", each constructed Employee object should then be added to the LinkedList. After all the data from the text file have been read in and stored in LinkedList object, re-access the  LinkedList<> to print all the Employee object's First Name, Last Name and  Zip Code in an appropriate format on the screen.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Create an Eclipse Java project that reads in the names and postal (Zip) code data for individuals from the attached "employee-2.txt  Download employee-2.txt" file (note: you need to add the text file with the exact file name to the root "project folder" of your Eclipse Java project, not the "src" folder). In the attached text file, edit the last row manually to add your own First Name, Last Name and Zip code.

Your project should read in the employee data provided in the text file and store the data into a LinkedList<Employee> data structure, for which, you need to write a Java class named "Employee.java" that defines a first name (type String), a last name (type String), a postal code (type int or String), an Employee "constructor" and a toString() method. You may optionally define "setters" and "getters" methods in the "Employee.java" class. 

You should write a separate driver class named "EmployeeListDriver.java" to implement the main() method, the main() method is where you should create the LinkedList<Employee> and all related operations.

Your project should have the following two Java files in the "src" folder, and the given text file inside the root (project) folder. 

  1. Employee.java
  2. EmployeeListDriver.java 

In the attached text file, each line contains two strings followed by an integer value, each separated by a tab character. Each line of data in the attached text file should be read in to "construct" an Employee object as defined in your Java class "Employee.java", each constructed Employee object should then be added to the LinkedList<Employee>. After all the data from the text file have been read in and stored in LinkedList<Employee> object, re-access the  LinkedList<> to print all the Employee object's First Name, Last Name and  Zip Code in an appropriate format on the screen. 

Here is the transcribed information from the image:

```
Kent         Brockman    12345
Charles      Burns       24923
Cletus       Delroy      25394
Ned          Flanders    04382
Seymour      Skinner     45234
Homer        Simpson     62352
Milhouse     Vance       52352
Nelson       Muntz       63265
Edna         Krabapple   72353
Jimbo        Jones       10234
Martin       Prince      02532
Patty        Bouvier     23252
Troy         McClure     32522
Marvin       Monroe      10028
Waylon       Smithers    80214
Moe          Szyslak     13095
Clancy       Wiggum      23052
John         Frink       20625
Barney       Gumbel      11321
Julias       Hibbert     13359
Lionel       Hutz        21952
Helen        Smith       19202
Bill         Clinton     79872
Alexander    Hamilton    92321
John         Wynne       23421
YourFirstName YourLastName YourZipCode
```

This list contains names paired with corresponding numbers, which appear to resemble identification numbers such as ZIP codes. At the end of the list, placeholders are provided for "YourFirstName," "YourLastName," and "YourZipCode."
Transcribed Image Text:Here is the transcribed information from the image: ``` Kent Brockman 12345 Charles Burns 24923 Cletus Delroy 25394 Ned Flanders 04382 Seymour Skinner 45234 Homer Simpson 62352 Milhouse Vance 52352 Nelson Muntz 63265 Edna Krabapple 72353 Jimbo Jones 10234 Martin Prince 02532 Patty Bouvier 23252 Troy McClure 32522 Marvin Monroe 10028 Waylon Smithers 80214 Moe Szyslak 13095 Clancy Wiggum 23052 John Frink 20625 Barney Gumbel 11321 Julias Hibbert 13359 Lionel Hutz 21952 Helen Smith 19202 Bill Clinton 79872 Alexander Hamilton 92321 John Wynne 23421 YourFirstName YourLastName YourZipCode ``` This list contains names paired with corresponding numbers, which appear to resemble identification numbers such as ZIP codes. At the end of the list, placeholders are provided for "YourFirstName," "YourLastName," and "YourZipCode."
**Creating an Eclipse Java Project for Employee Data Management**

**Objective:**

Develop a Java project that reads names and postal (Zip) code data for individuals from an attached text file named "employee-2.txt". The project will use Eclipse as the development environment.

**Instructions:**

1. **File Setup:**
   - Place the text file "employee-2.txt" in the root "project folder" of your Eclipse Java project (do not place it in the "src" folder).
   - Edit the last row of the text file to include your own First Name, Last Name, and Zip code.

2. **Java Class Implementation:**
   - **Employee.java:**
     - Create a Java class named `Employee.java`.
     - Define the following attributes:
       - First Name (String)
       - Last Name (String)
       - Postal Code (int or String)
     - Implement a constructor to initialize these attributes.
     - Implement a `toString()` method.
     - Optionally, define setter and getter methods for each attribute.

3. **Driver Class Implementation:**
   - **EmployeeListDriver.java:**
     - Create a separate driver class named `EmployeeListDriver.java`.
     - Implement the `main()` method where the program will execute.
     - Initialize and manage the `LinkedList<Employee>` to store and manipulate employee data.

4. **Project Structure:**
   - Your project should contain two Java files in the "src" folder:
     1. Employee.java
     2. EmployeeListDriver.java
   - Ensure the text file is inside the root (project) folder.

5. **Data Handling:**
   - Each line in the attached text file includes two strings and an integer value, separated by a tab character.
   - Read each line into the Java program to "construct" an `Employee` object using the format defined in `Employee.java`.
   - Add each constructed `Employee` object to the `LinkedList<Employee>`.
   - Once all data is read and stored, use the `LinkedList` to display each Employee object's First Name, Last Name, and Zip Code in a formatted manner on the screen.
Transcribed Image Text:**Creating an Eclipse Java Project for Employee Data Management** **Objective:** Develop a Java project that reads names and postal (Zip) code data for individuals from an attached text file named "employee-2.txt". The project will use Eclipse as the development environment. **Instructions:** 1. **File Setup:** - Place the text file "employee-2.txt" in the root "project folder" of your Eclipse Java project (do not place it in the "src" folder). - Edit the last row of the text file to include your own First Name, Last Name, and Zip code. 2. **Java Class Implementation:** - **Employee.java:** - Create a Java class named `Employee.java`. - Define the following attributes: - First Name (String) - Last Name (String) - Postal Code (int or String) - Implement a constructor to initialize these attributes. - Implement a `toString()` method. - Optionally, define setter and getter methods for each attribute. 3. **Driver Class Implementation:** - **EmployeeListDriver.java:** - Create a separate driver class named `EmployeeListDriver.java`. - Implement the `main()` method where the program will execute. - Initialize and manage the `LinkedList<Employee>` to store and manipulate employee data. 4. **Project Structure:** - Your project should contain two Java files in the "src" folder: 1. Employee.java 2. EmployeeListDriver.java - Ensure the text file is inside the root (project) folder. 5. **Data Handling:** - Each line in the attached text file includes two strings and an integer value, separated by a tab character. - Read each line into the Java program to "construct" an `Employee` object using the format defined in `Employee.java`. - Add each constructed `Employee` object to the `LinkedList<Employee>`. - Once all data is read and stored, use the `LinkedList` to display each Employee object's First Name, Last Name, and Zip Code in a formatted manner on the screen.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY