Python Forum

Full Version: Help in an homework : Air trafic control
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[b]Can someone please help me do this:
This application takes a proposed set of flight arrival times and decides when those flights should actually arrive. The actual arrival times are chosen so that all arrival times are at least 5 minutes apart. For each flight, the actual arrival time should be the proposed arrival time or up to 15 minutes later. If the application cannot find a flight arrival time that satisfies these constraints, that flight is REJECTED. All flights are assumed to occur on the same day.

This application's user interface shows statistics about the flights that were processed.


User Interface
* Inputs
* No required inputs
* Outputs
* The number of flights processed
* The number of flights rejected
* The average difference between proposed and actual times.
Files
* Inputs
* proposed.txt: a list of flight IDs and proposed arrival times.
* Outputs
* actual.txt: a list of flight IDs and actual arrival times.
what have you tried? We are glad to help, but we won't do your homework.
Post your code in python tags, any errors in error tags, ask specific questions.