Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

-A captain pilot can fly a maximum of 100 hours per month. -The captain pilot must be able to take a minimum of 8 days

-A captain pilot can fly a maximum of 100 hours per month.

-The captain pilot must be able to take a minimum of 8 days of vacation.

-If the flight duration exceeds 6 hours, the captain pilot has the right to stay at that location for 28 hours.

-If he goes to the following countries, he can stay in that country for 28 hours.

*Los Angeles (USA) = 11 hours

*Chicago (USA) = 11 hours

*Tanzania (East Africa) = 8 hours

*Cape Town (South Africa) = 7 hours

*Tokyo (Japan) = 11 hours

*Singapore = 9 hours

*Rio (Brazil) = 13 hours

*Kuala Lumpur (Malaysia) = 10 hours

*Jakarta (Indonesia) = 11 hours

*Bangkok (Thailand) = 10 hours

*Seoul (South Korea) = 10 hours

*Shanghai (China) = 11 hours

*Bogota (Colombia) = 13 hours

*Nairobi (Kenya) = 7 hours

*Hanoi (Vietnam) = 10 hours

*Mumbai (India) = 7 hours

-If the captain pilot goes somewhere under 6 hours, he returns to his country on the same day. -Destinations that a captain can go to in less than 6 hours;

*Ankara (Trkiye) = 1 hour

*Izmir (Trkiye) = 1 hour

*Antalya (Trkiye) = 2 hours

*Trabzon (Trkiye) = 2 hours

*Berlin (Germany) = 3 hours

*Dsseldorf (Germany) = 3 hours

*Moscow (Russia) = 4 hours

*Amsterdam (Netherlands) = 4 hours

*Madrid (Spain) = 5 hours

*Rome (Italy) = 3 hours

*Paris (France) = 4 hours

*Riyadh (Saudi Arabia) = 4 hours

*Sarajevo (Bosnia and Herzegovina) = 2 hours

*Copenhagen (Denmark) = 4 hours

*Algeria = 3 hours

*Manchester (England) = 5 hours

*Dublin (Ireland) = 5 hours

*Athens (Greece) = 2 hours

With the information I provided above, I need to write a comprehensive code in Python that can automatically determine a pilot's monthly flight schedule and free days by taking into account calendar limits. I need to specify which days are in-flight and which days are day off. I need to write a minimum of 300 lines of code. Please help me

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

Describe ERP and how it can create efficiency within a business

Answered: 1 week ago