PYTHON CODE: In this scenario you are the responsible engineer that optimize Air traffic flow of Ataturk Airport. Each day, number of airplanes take-off and landing varies between 50 and 70 each. However, if weather conditions go rough in Istanbul, it affects (decrease) %60 of landing and %40 of take-off. In Istabul possibility of rough weather events observed as 0.3 (%30). Create daily weather for a month considering rough weather possibility and print on screen. Calculate number of airplanes take-off and landing separately every day for a month. Calculate total take-off and landing for a month. Calculate low-median, high-median, median, mean and stdev of take-off and landing every day for a month.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

PYTHON CODE: In this scenario you are the responsible engineer that optimize Air traffic flow of Ataturk Airport. Each day, number of airplanes take-off and landing varies between 50 and 70 each. However, if weather conditions go rough in Istanbul, it affects (decrease) %60 of landing and %40 of take-off. In Istabul possibility of rough weather events observed as 0.3 (%30). Create daily weather for a month considering rough weather possibility and print on screen. Calculate number of airplanes take-off and landing separately every day for a month. Calculate total take-off and landing for a month. Calculate low-median, high-median, median, mean and stdev of take-off and landing every day for a month.

Sample Output:

daily weather for a month:

[1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1]

daily take_off for a month:

[61, 62, 61, 66, 54, 58, 40, 41, 54, 56, 52, 64, 51, 61, 53, 57, 54, 65, 39, 56, 70, 57, 62, 32, 59, 33, 35, 58, 39, 58]

monthly take_off: 1608

daily landing for a month:

[60, 68, 58, 61, 70, 56, 25, 20, 54, 59, 53, 60, 64, 65, 67, 70, 64, 54, 22, 54, 68, 52, 61, 24, 60, 20, 28, 63, 26, 54]

monthly landing: 1560

take-off statistics

Low Median: 56

High Median: 57

Mean 53.6

Stdev 10.347746714573445

Landing statistics

Low Median: 58

High Median: 59

Mean 52

Stdev 16.762026048225177

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Returning value from Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education