Question: Write in JAVA: Assume that you often send packages from Virginia to New York. Create a program that calculates the shipping cost based on number

Write in JAVA:
Assume that you often send packages from Virginia to New York. Create a program that calculates the shipping cost based on number of pounds. The rules are as follow:
weight up to 5 pounds - $ 1.20 per pound
5< weight <=10- $ 1.00 per pound
10< weight <=20- $ 0.90 per pound
weight >20- $ 0.80 per pound
The program receives a package weight from Keyboard, and prints a message similar to the following:
Your package weight is 15 pounds, the cost of shipping is $ 13.5

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