Assistance needed in creating simple calculator program :D

Discussion in 'C' started by Ultranothing, Aug 29, 2007.

  1. Ultranothing

    Ultranothing New Member

    Joined:
    Aug 27, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hello, I am trying to create a very simple standalone prog which allows me to calculate the DOT mileage from point A to point B.

    I have a CT DOT official mileage book which it rather difficult to browse through when I'm on the road...it looks something like this :

    [​IMG]


    So basically what I'm after is a way to enter all of the values into a program so that I can get something like this :

    [​IMG]

    I started programming in Basic language when I was 5 or 6 years old...hehe I still remember the very first program I made :

    10 Print "Hello, what is your name?"
    20 Input A$
    30 Print "Hello, ";A$

    And then, whoa, when I figured out I could replace lines 10 and 20 with Input "What is your name ->"A$

    ...yah, those were the days...but unfortunately I forgot most of that over the years. It's times like these I wish I'd kept up on my lessons :D

    So I'm hoping someone can give me some pointers. Would this be a difficult program to create? I'm not expecting anyone to make it for me, I'd like to do it myself, if it's something a newbie could accomplish.

    Thanks in advance for any info!

    - Josh
     
  2. jwshepherd

    jwshepherd New Member

    Joined:
    Aug 13, 2007
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    VP Technology Corporation
    Location:
    Texas
    Home Page:
    http://www.officialhackers.com
    Since you've used basic before I would recomend using VB with an access database. Do you have access to VB? If not you could probably even use Excel with VBA
     
  3. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    Language is not your problem. Access to data in a manipulable form is your problem If this data is available on the web, I would suggest Python and Beautiful Soup. If it isn't, you're in a world of hurt.
     
  4. jwshepherd

    jwshepherd New Member

    Joined:
    Aug 13, 2007
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    VP Technology Corporation
    Location:
    Texas
    Home Page:
    http://www.officialhackers.com
    modifying the data sheet as you have will be a pain in the arse, but not impossible. Once it is in proper format everything else should be simple.
     
  5. jwshepherd

    jwshepherd New Member

    Joined:
    Aug 13, 2007
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    VP Technology Corporation
    Location:
    Texas
    Home Page:
    http://www.officialhackers.com
    they have a program to dumps gdx files into an access database ( gdx2access ) , but it takes a table for each city. don't know if that is the best way, but I will give table layout some thought.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice