A company accepts user orders by part numbers interactively. Users might make the following errors as they enter data: - The part number is not numeric. The quantity is not numeric. - The part number...


A company accepts user orders by part numbers<br>interactively. Users might make the following errors as<br>they enter data:<br>- The part number is not numeric.<br>The quantity is not numeric.<br>- The part number is too low (less than 0).<br>- The part number is too high (more than 999).<br>- The quantity ordered is too low (less than 1).<br>- The quantity ordered is too high (more than 5,000).<br>Create a class that stores an array of usable error messages; save<br>the file as DataMessages.java. Create a DataException class;<br>each object of this class will store one of the messages. Save the<br>file as DataException.java. Create an application that prompts the<br>user for a part number and quantity. Allow for the possibility of<br>nonnumeric entries as well as out-of-range entries, and display the<br>appropriate message when an error occurs. If no error occurs,<br>display the message

Extracted text: A company accepts user orders by part numbers interactively. Users might make the following errors as they enter data: - The part number is not numeric. The quantity is not numeric. - The part number is too low (less than 0). - The part number is too high (more than 999). - The quantity ordered is too low (less than 1). - The quantity ordered is too high (more than 5,000). Create a class that stores an array of usable error messages; save the file as DataMessages.java. Create a DataException class; each object of this class will store one of the messages. Save the file as DataException.java. Create an application that prompts the user for a part number and quantity. Allow for the possibility of nonnumeric entries as well as out-of-range entries, and display the appropriate message when an error occurs. If no error occurs, display the message "Valid entry". Save the program as PartAndQuantityEntry.java.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here