Write a java5 program that asks user to enter weight and miles package. Shipping charges are then displayed.?
User must be able to enter the weight of a package and the destination miles and get the shipping charges displayed in a GUI format (dialog boxs). Weight of package (w). If w <= 2 LB then shipping $1.10 per 500 miles. If 2 LB < w <= 6 LB then shipping $2.20 per 500 miles. If 6 LB < w <= 10LB then shipping $3.70 per 500 miles. If w > 10 LB then shipping $3.80 per 500 miles. No prorating! If miles is 50 and weight(w) is 25 LBs then shipping cost is $3.80. If miles is 550 and weight is 1 LB then shipping cost 2* $1.10 = $2.20. Also if user enters zero he/she sould get zero displayed.
I need some help on this for school. I'm having trouble relating all the varibles. It's harder than it looks.
- Anonymous1 decade agoFavorite Answer
Ok, now what?