Python Forum
Calculation Module - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Calculation Module (/thread-2365.html)



Calculation Module - king2385 - Mar-10-2017

When landing an aircraft, the pilot needs to calculate the landing distance over a fifty foot (50') object. This calculation is based on headwind speed, weight of the loaded aircraft, altitude and the temperature. 

Example I: If the runway is at 1000 feet altitude, the temperature is 80 degrees, headwind speed is 0 and the weight of the loaded aircraft is 4400 pounds; the landing rollout would be roughly 1425 feet.
Example II: If the runway is at 2000 feet altitude and the temperature is 80 degrees, headwind speed is 0 and the weight of the loaded aircraft is 4400 pounds; the landing rollout would be roughly 1700 feet.
Example III: If the runway is at 2000 feet altitude and the temperature is 60 degrees, headwind speed is 0 and the weight of the loaded aircraft is 4400 pounds; the landing rollout would be roughly 1650 feet.
Assignment:

Create a module and test script for landing an aircraft over a 50 foot object at different altitudes and temperatures. The solution should display an estimated landing roll.

I was hinted to put it in a table but didn't see how that would give me an equation to do the calculations.  If I can figure out how the calculation works, I'm confident I can complete.


RE: Calculation Module - Larz60+ - Mar-10-2017

No flaps? What have you come up with so far?

create a function (def) that takes altitude, temperature, weight and headwind and
returns rollout.


RE: Calculation Module - sparkz_alot - Mar-10-2017

Seriously?  They did not supply you with the formula, just three examples? By the way, where is the requirement for your air speed? Without that, you cannot compute the effect of head or tail winds.  Are you to assume the runway is ideal? Completely dry, and level?  Are you using and type of breaking such as flare or hand brake?  Are you to assume that clearing your 50 foot object, you will glide to a touchdown point?

The actual formulas for take offs and landings are rather complex and rely on a number of conditions.  I don't think you are going to be able to create any type of reliable formula with just the three examples given.  Unless...they are only looking for something very simple like:

def facts(altitude, temp, headwind, weight)
    if altitude == 1000 and temp == 80 and headwind == 0 and weight == 4400:
        rollout = 1425
    elif
    .
    .
    .
    return rollout
Of course this only accounts for the 3 examples.


RE: Calculation Module - Skaperen - Mar-11-2017

i hope this was a programming or comp sci class and not an aviation or engineering class.