1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Need help creating program

Discussion in 'Software Development' started by vipersf, Sep 25, 2008.

Thread Status:
Not open for further replies.
Advertisement
  1. vipersf

    vipersf Thread Starter

    Joined:
    Jul 27, 2006
    Messages:
    180
    Hello all,

    I would like to create a very very easy (for you guys probably) program.
    Now I know really nothing about programming, so I was wondering if you could help me out here.

    Attached is an excell file which I currently use to calculate the rate of descend for an aircraft. But it's not usefull to have to fill the data in everytime in that file.

    Therefore what I'm looking for is a stand alone .exe that would:

    1) Calculate the "Start Descend Distance". This after input of current and desired altitude, rate of descend and ground speed. (UPPER PART of .xls)

    2) Calculate the "Rate of descend". This after input of current and desired altitude, distance and ground speed. (LOWER PART of .xls)

    Could you help me with this fairly easy (if you know what you're doing that is) program ??

    Any help appreciated

    Vipersf
     

    Attached Files:

  2. -Fabez-

    -Fabez-

    Joined:
    Jul 28, 2008
    Messages:
    1,899
    Should be easy to make some code for you :D
     
  3. vipersf

    vipersf Thread Starter

    Joined:
    Jul 27, 2006
    Messages:
    180
    I would be so gratefull !!!

    Looking forward to seeing the .exe
     
  4. vipersf

    vipersf Thread Starter

    Joined:
    Jul 27, 2006
    Messages:
    180
    Any progress -Fabez - ?
     
  5. vipersf

    vipersf Thread Starter

    Joined:
    Jul 27, 2006
    Messages:
    180
  6. vipersf

    vipersf Thread Starter

    Joined:
    Jul 27, 2006
    Messages:
    180
  7. -Fabez-

    -Fabez-

    Joined:
    Jul 28, 2008
    Messages:
    1,899
    Could you post the equations for start dscent distance rate of decent please.
     
  8. vipersf

    vipersf Thread Starter

    Joined:
    Jul 27, 2006
    Messages:
    180
    -Fabez- i'm not sure what you mean so I will post everything I can offer you ... :D
    I hope this contains all you need !!

    As said before:

    The program should be able to do two options:

    Option 1: Calculate the "Start Descend Distance". This after input of current and desired altitude, rate of descend and ground speed. (UPPER PART of .xls)

    Option 2: Calculate the "Rate of descend". This after input of current and desired altitude, distance and ground speed. (LOWER PART of .xls)

    In option 1:
    Current Altitude (A2) = <input variable>
    Desired Altitude (B2) = <input variable>
    Rate of descend (C2) = 1800 (by default !)
    Feet to descend (D2) = A2-B2
    Time To Allow for Descent MM:SS (E2) = (((D2/C2)-INT(D2/C2))*0.6)+INT(D2/C2)
    Ground Speed (Kts) (F2) = <input variable>
    Distance (NM) covered per Minute (G2) = F2/60
    Sart Descent Distance (NM) From Target (H2) = G2*(D2/C2)

    In option 2:
    Current Altitude (A7) = <input variable>
    Desired Altitude (B7) = <input variable>
    Rate of descend (C7) = (D7/E7)
    Feet to descend (D7) = (A7-B7)
    Time To Allow for Descent MM:SS (E7) = INT(H7/(F7/60))+((F7/60)-INT(F7/60))/0.6
    Ground Speed (Kts) (F7) = <input variable>
    Distance (NM) covered per Minute (G7) = F7/60
    Sart Descent Distance (NM) From Target (H7) = <input variable>
     
  9. vipersf

    vipersf Thread Starter

    Joined:
    Jul 27, 2006
    Messages:
    180
  10. vipersf

    vipersf Thread Starter

    Joined:
    Jul 27, 2006
    Messages:
    180
  11. vipersf

    vipersf Thread Starter

    Joined:
    Jul 27, 2006
    Messages:
    180
  12. Archroom

    Archroom

    Joined:
    Oct 7, 2008
    Messages:
    2
    can anyone help me. i am new to this.

    i want to save an excel worksheet as the content of a spacific cell. anyone know how.
     
  13. vipersf

    vipersf Thread Starter

    Joined:
    Jul 27, 2006
    Messages:
    180
    Hi Archroom,

    Would you mind opening a new topic ?
    General rule: 1 problem = 1 topic.

    Welcome to TechGuy ... these people are very professional and I'm sure they'll help you out
     
  14. vipersf

    vipersf Thread Starter

    Joined:
    Jul 27, 2006
    Messages:
    180
  15. -Fabez-

    -Fabez-

    Joined:
    Jul 28, 2008
    Messages:
    1,899
    The following is Python code, sorry it took so long. If you find any mistakes I will fix them, if you have any questions I will be happy to help you. The calculations may be incorrect as the way you posted them was slightly confusing, if so could you post the calculations again and I will correct them for you :D

    Code:
    print "Plane Calc Program"
    print "Please choose either one or two"
    Choice=int(raw_input("Choice: "))
    if Choice==1:
        print "Please answer the following questions"
        CurrentAlt=float(raw_input("Current Altitude: "))
        DesiredAlt=float(raw_input("Desired Alritude: "))
        RateOfDes=float(raw_input("Rate of desent: "))
        if RateOfDes=="":
            RateOfDes=1800
        FeetToDes=CurrentAlt-DesiredAlt
        TimeToDes=((FeetToDes/RateOfDes)-(FeetToDes/RateOfDes)*0.6)+(FeetToDes/RateOfDes)
        GroundSpeed=float(raw_input("Ground Speed: "))
        DistCoveredPerMin=GroundSpeed/60
        StartDesDist=DistCoveredPerMin*(FeetToDes/RateOfDes)
        print "Feet to desend: "
        print FeetToDes
        print "Time to desend: "
        print TimeToDes
        print "Distance covered per minute: "
        print DistCoveredPerMin
        print "Start desend distance from target: "
        print StartDesDist
    elif Choice==2:
        print "Please answer the following questions"
        CurrentAlt=float(raw_input("Current Altitude: "))
        DesiredAlt=float(raw_input("Desired Alritude: "))
        StartDesDist=float(raw_input("Start desent distance: "))
        GroundSpeed=float(raw_input("Ground Speed: "))
        FeetToDes=CurrentAlt-DesiredAlt
        TimeToDes=StartDesDist/(GroundSpeed/60)+(GroundSpeed/60)-(GroundSpeed/60)/0.6
        RateOfDes=(FeetToDes/TimeToDes)
        DistCoveredPerMin=GroundSpeed/60
        print "Feet to desend: "
        print FeetToDes
        print "Time to desend: "
        print TimeToDes
        print "Rate of a desent: "
        print RateOfDes
        print "Distance covered per minute: "
        print DistCoveredPerMin
    
     
  16. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/753249

  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