3.9. Shipping Charges - Java

Words
128
Reading
1 min
Listen
Play
10y

Starting out with Java: From control structures through objects

Chapter 3

Programming Challenges

9. Shipping Charges 

The Fast Freight Shipping Company charges the following rates: 

Weight of Package                              Rate per 500 Miles Shipped 

 2 pounds or less                                      $1.10 

 Over 2 pounds but not more than 6 pounds              $2.20 

 Over 6 pounds but not more than 10 pounds             $3.70 

 Over 10 pounds                                        $3.80 

The shipping charges per 500 miles are not prorated. For example, if a 2-pound package is  

shipped 550 miles, the charges would be $2.20. Write a program that asks the user to enter  

the weight of a package and then displays the shipping charges.

Gaddis, Tony (2015-05-29). Starting Out with Java: From Control Structures through Objects (Page 186). Pearson Education. 

Kindle Edition.

Happy Steeming Everyone! :)

3.9. Shipping Charges - Java | Ecency