Problem

Weight <=5 return 5; else return 5 + (weight-5)*2.

Examples

  • shippingCost(3) -> 5
  • shippingCost(8) -> 11
Compile and test (Ctrl+Enter)