Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Define recruitment.

Answered: 1 week ago

Question

Identify external recruitment sources.

Answered: 1 week ago