#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    14
    Rep Power
    0

    help me with this program plz.


    Shipping Charges
    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.
  2. #2
  3. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    hmmm...

    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.

IMN logo majestic logo spyfu logo threadwatch logo seochat tools logo