Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public double shippingCharge(){
- return if (packageWeight <= 2 && packageWeight > 0) {
- shippingCharge = chargedMiles * 1.10;
- }
- else if(packageWeight <= 6) {
- shippingCharge = chargedMiles*2.20;
- }
- else if(packageWeight <= 10) {
- shippingCharge = chargedMiles*3.70;
- }
- else {
- shippingCharge = chargedMiles*4.80;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement