Need help in designing Shipping Company!

This is a discussion on Need help in designing Shipping Company! within the C++ Programming forums, part of the General Programming Boards category; For my computer science class, I am planning to design a shipping company program which calculates the rates of different ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    2

    Need help in designing Shipping Company!

    For my computer science class, I am planning to design a shipping company program which calculates the rates of different types(ground, air, etc). However, i would also like the rates to vary from place to place (Origin to Destination) and height and weight being a factor. How would I go about doing this? My friend mentined having a graph function or something for the zip codes (origin and destination)

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    > How would I go about doing this?

    By writing some code and posting it here so that we can tell you what's wrong.

  3. #3
    Unregistered
    Guest
    before you even think about writing code you should solve the problem, or at least derive the algorhythm you are going to use using nothing but your brain and a pen(cil) and paper.

    costToShip = routeFactor*distanceFactor*heightFactor*weightFact or;

    routeFactor could be $2/mile if by air or $1/mile if by land, etc.

    distance factor may be $.1/mile for first 100 mile, then $.075/mile for next 900 mile and $.05/mile beyond 1000 miles

    etc. Once you have done somehting like this you can put it into code much easier.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What company to bash..?
    By h_howee in forum A Brief History of Cprogramming.com
    Replies: 74
    Last Post: 02-03-2008, 12:13 PM
  2. game company interview
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 04-28-2004, 10:49 PM
  3. SMS provider that offer SMS shipping world-wide for under 0,05 ???
    By gicio in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 05-26-2003, 08:26 PM
  4. Company Hopping
    By FillYourBrain in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 10-07-2002, 11:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21