Question
Write a Python program that will encounter planes that need to land at an airport. Rules The time scale is : 0.2 seconds 10 minutes
Write a Python program that will encounter planes that need to land at an airport.
Rules
The time scale is :
0.2 seconds 10 minutes
Have planes appear on radar. Planes will appear no faster than 0.0 seconds from one another.
The approach is 20 minutes (0.4 seconds). planes queue up on approach 20 mins apart.
You have two runways. You can schedule either plane to either runway, depending on direction.
approaching northbound
approaching southbound runway
If there is an emergency status
International (F) bumps all (first character of the FlightNo.).
Domestic (D) bumps Affiliate (A).
status 2 bumps (pushes) status 1, 3, 4
status 3 bumps 1,4
status 4 bumps 1
There are 19 planes.
Place these planes in a CSV file Download CSV fileand use them in your program.
FlightNo | Status | Direction |
F3657B6 | 1 | 2 |
D2FA2D3 | 2 | 1 |
A177277 | 1 | 2 |
F3AAA6F | 1 | 1 |
F380C03 | 4 | 1 |
A284163 | 3 | 2 |
D367691 | 1 | 1 |
D1B8049 | 1 | 2 |
A2AB5D8 | 1 | 1 |
D344D44 | 1 | 1 |
F1E70DD | 1 | 1 |
A10029B | 1 | 2 |
D36AEB3 | 2 | 1 |
F29B47F | 1 | 2 |
D329DF3 | 1 | 1 |
D2800D3 | 4 | 2 |
D226C21 | 2 | 1 |
A29DC24 | 1 | 1 |
A14D3C2 | 1 | 1 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started