CSCI 431 Programming Project

Write a program in Python to evaluate the supplied airline flight data. Analyze the input file to determine the best circumstances for booking a seat on a flight that will not be cancelled. Examine the effect of the following: Distance, Carrier, Origin City, Destination City, Aircraft, Month, State, and combinations of these. The source of the input file is

The program will

  1. Operate in two modes. First, the program should run without user input and provide the user of the program with the best flight options based on individual and combinations of categories. Second, the user can select to input the criteria for which they want best options for successful flights.
  2. Use scheduled versus performed departures and the number of available seats to make decisions.
  3. Examine the effect of the following: Distance, Carrier, Origin City, Destination City, Aircraft, Month, State, and combinations of these (minimum of three combinations).
  4. Evaluate distance ranges based on the following increments: increments of 100 miles up to 1000, 1000-2000, and greater than 2000.
  5. Output recommendation(s) to the user of best chance for a successful flight and why.
  6. Output a ‘table’ of statistics to support the recommendation.
  7. Create a GUI that at a minimum allows the user to select which mode to run the program.

You will need to write several modules to compute statistics and determine which of the categories and combinations of categories are most successful.

You will also need to examine the file of airline flight data to determine how it needs to be read by your program and how you will code the input data. You may choose to create a new intermediate file. If you create a new input file, print a singlepage of the original and a corresponding page of the new file to turn in with your program.

Note that you should eliminate from your analysis, records where the number of departures exceeds the number of scheduled flights. This could be a part of your creation of a new input file.

The first part of your assignment is to determine and design the modules that will be used in your analysis. You should create several small files to test your program. You may collaborate to consider your design and your test files; however, your program and explanation must be your own effort.

Turn in (by e-mail and printout) your code, one page of your original input data file and one pageof any intermediate data files, copies of your test input and matching outputand an explanation of what you were able to determine about the supplied flight data.

Your explanation should include a description of any intermediate files, a description of how you coded the program, what calculations you made(algorithms) and why, what options provide the best opportunity of a successful flight in each category and in combination of categories based on your calculations and why (include the supporting calculations), your table of statistics,and specific acknowledgement of any collaboration efforts.

The data file for your evaluation contains data for flights originating or ending in NC or SC in 2012.