Question: Next, create an application that prompts the user for data for a delivery. Keep prompting the user for each of the following values until they
Next, create an application that prompts the user for data for a delivery. Keep prompting the user for each of the following values until they are valid: A four-digit year between 2001 and 2025 inclusive A delivery number for the year between 1 and 9999 inclusive A package weight between 0.10 pound and 100 pounds inclusive A delivery distance code that is either 1 or 2 When all the data entries are valid, construct a Delivery object, and then display its values. Save the file as CreateDelivery.java.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
