Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using Java only and read instructions carefully. Create a New Project called Your LastNameEmpSearch. Write a program that allows a user to enter the names
using Java only and read instructions carefully.
Create a New Project called Your LastNameEmpSearch. 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. Be sure to provide specific instructions to the user on how to enter any data. Provide sample input with your user prompts where appropriateStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started