about | help | code help+videos | done | prefs |
getShippingCharge
Given the weight of a package, return the shipping charge based on the following rates. If the package weight is 2 pounds or less, the rate is $1.1; if the package weight is over 2 pounds, but not more than 6 pounds, the rate is $2.2; if the package weight is over 6 pounds, but not more than 10 pounds, the rate is $3.7; if the package weights more than 10 pounds, the rate is $3.8. getShippingCharge(2) → 1.1 getShippingCharge(2.000000001) → 2.2 getShippingCharge(3.5) → 2.2 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy