Create an application that accepts employee data interactively. Users might make any of the following errors as

Question:

Create an application that accepts employee data interactively. Users might make any of the following errors as they enter data:

The employee number is not numeric, less than 1000, or more than 9999.

The hourly pay rate is not numeric, less than $9.00, or more than $25.00.

Create a class that stores an array of six usable error messages that describe the preceding mistakes; save the file as EmployeeMessages.java. Create an EmployeeException class; each object of this class will store one of the messages. Save the file as EmployeeException.java. Create an application that prompts the user for employee data, and display the appropriate message when an error occurs. If no error occurs, display the message “Valid employee data”. Save the program as EmployeeDataEntry.java.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: