Answer to Question #302449 in Java | JSP | JSF for shruti

Question #302449

The Fast Freight Shipping Company charges the following rates:


Weight of Package (in Kilograms) Rate per 500 Miles shipped

2 KG or less: Rs 1.10

Over 2 Kg but not more than 6 Kg: Rs 2.20

Over 6 KG but not more than 10 Kg: Rs 3.70

Over 10 KG but not more than 20 KG: Rs 4.80


Write a program that asks for the weight of the package and the distance it is to be shipped, and then displays the charges.

Input validation:

1. Do not accept values of 0 or less for the weight of the package.

2. Do not accept weights of more than 20 Kg (this is the maximum weight the company will ship).

3. Do not accept distances of less than 10 miles or more than 3,000 miles.


0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS