September 23rd, 2003, 11:39 AM
help me with this program plz.
The Fast Freight Shipping Company charges the following rates:
Weight of Package (in Kg) Rate Per 500 Miles Shipped
2Kg or less $1.10
Over 2 Kg but not more than 6 Kg $2.20
Over 6 Kg but not more than 10 Kg $3.70
Over 10 Kg but not more than 20 KG $4.80
Write a program that asks for the weight of the package and the distance it is
to be shippped and then displays the charges.
Input validation: do not accept values of 0 or less for the weight of the
package. Do not accept weights of more than 20 Kg. Do not accept distances of
less than 10 miles or more than 3000 miles. These are the company's minimum and
maximum shipping distances.
September 23rd, 2003, 02:15 PM
Please do not come here and ask someone to do your homework for you.
Please read the sticky thread at the top of this forum about "How to Post a Question" because your subject title is unacceptable.