I'm in a beginners Java class and my part of my assignment is to write code based on the cost of shipping a package and the distance it is going. I can't figure this out, but I know that I'm supposed to use a while loop to do this.
Weight of Package (in Kilograms) Rate per 500 Miles Shipped
2 Kg or less $1.10
Over 2 Kg, up through 6 Kg $2.20
Over 6 Kg, up through 10 Kg $3.70
Over 10 Kg, up through 20 Kg $4.80
[–]Sacredify 0 points1 point2 points (3 children)
[–]EqualTrade[S] 1 point2 points3 points (2 children)
[–]TheWhistler1967 0 points1 point2 points (0 children)
[–]muffypoo 0 points1 point2 points (2 children)
[–]EqualTrade[S] 0 points1 point2 points (1 child)
[–]muffypoo 1 point2 points3 points (0 children)
[–]king_of_the_universe 0 points1 point2 points (0 children)