Question: Delivery Service Programming 1 . Create a Java class, Delivery 1 . java for a delivery service. The program should prompt the user for the

Delivery Service Programming
1. Create a Java class, Delivery1.java for a delivery service. The program should
prompt the user for the following inputs.
A code representing the delivery area. A local delivery is code 1, and a long
distance delivery is code 2.
A weight, in pounds of the item to be delivered.
The program will then display the fee for the item based on the delivery type and
its weight.
The fee for the delivery, as follows:
Distance Weight Fee ($)
1 Under 5 pounds 12.00
15 to 20 pounds 16.50
1 Over 20 pounds 22.00
2 Under 5 pounds 35.00
25 pounds or more 47.95
For example:
2. Create Delivery2.java by modifying the Delivery1.java so that it repeats the
whole task for 5 times.
For example:
3. Create Delivery3.java by modifying the Delivery1.java so that the program will
prompt to ask the user whether the user would like to continue or not.
For example:
4. Create Delivery4.java by modifying the Delivery3.java so that the program will
also compute the followings and display the results at the end of the program.
Total amount and fee of local delivery items
Total amount and fee of long distance delivery items
Total fee of delivery services
For example:

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 Programming Questions!