Question: Employee Search Project (JAVA) Create a New Project called YourLastNameEmpSearch . Write a program that allows a user to enter the names and identification numbers

Employee Search Project (JAVA)

Create a New Project called YourLastNameEmpSearch.

Write a program that allows a user to enter the names and identification numbers (IDs) of up to 10 employees. Continue to prompt the user for names and IDs until the user enters the sentinel value "ZZZ" for a name OR has entered 10 names, whichever comes first. When the user is finished entering names, produce a count of how many names were entered, and then display the names.

Next, in a loop, continuously ask the user to type one of the IDs previously entered and then display the corresponding employee name OR an error message if the ID has not been previously entered. The loop continues until the user enters "ZZZ" for an ID.

NOTE: All identification numbers (IDs) are five (5) characters long and begin with a 'B'. For example, "B1234", "B6745", and "B0222" are all valid IDs. Also, do NOT use a HashMap to store names and IDs. The program SHOULD use arrays instead to do that.

Be sure to provide specific instructions to the user on how to enter any data. Provide sample input with your user prompts where appropriate.

PROGRAMMING GUIDELINES: A programming assignment will be assigned a grade of 0 if it fails to compile. Each program must not contain any spelling errors in the program output or points will be deducted. Each program must contain a comment section (or points will be deducted) that indicates the following: 1. Student Name 2. Program Name 3. Short Program Description 4. Due Date Programs should use appropriate spacing and indentation, in order to increase readability. Programs should only be completed in Eclipse. Use comments for clarification throughout your programs. Use meaningful variable names. Subdivide your program into mini-sections. For more difficult programs, this will make it easier to detect both syntax and logical errors. Naming Convention for mutator methods: set + fieldname (i.e. setName) Naming Convention for accessor methods: get + fieldname (i.e. getName)

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!