10 points
See the HOWTO page for more details on which dictionaries to setup to solve some of these problems. It includes suggested steps if you don't know how to get started with this assignment. It also has a smaller datafile you can use for testing your program.
There are many real data sets on the web such as the CORGIS Dataset Project from Virginia Tech. I grabbed a dataset that has information about flight delays at major airports in the U.S. since 2003 on a monthly basis.
We've processed the data and put it into an easier format for you to
process. You will read the data from our course website. Each line
represents one month at an airport and we have included the following information
about each line: airport code (3 letters), month name, year, number of cancelled
flights, number of carriers, number of flights delayed, number of flights
total, number of flights on time, and the airport name.
You'll write your program to answer questions about these airports.
http://www.cs.duke.edu/courses/fall17/compsci101/data/airportDataOct2017.txt
Each line of data represents one month at a specific airport.
The fields are separated
by "$".
For example, here are a few lines from the datafile:
The first line above represents the Atlanta airport (code ATL) in June
2003 that had 216 cancelled flights, 11 carriers, 5843 delayed flights,
30060 total flights, 23974 ontime flights and has the name:
Atlanta, GA: Hartsfield-Jackson Atlanta International.
Requirements
To get full credit you must
AirportInfo.py
.
ATL$June$2003$216$11$5843$30060$23974$Atlanta, GA: Hartsfield-Jackson Atlanta International
BOS$June$2003$138$14$1623$9639$7875$Boston, MA: Logan International
BWI$June$2003$29$11$1245$8287$6998$Baltimore, MD: Baltimore/Washington International Thurgood Marshall
CLT$June$2003$73$11$1562$8670$7021$Charlotte, NC: Charlotte Douglas International
DCA$June$2003$74$13$1100$6513$5321$Washington, DC: Ronald Reagan Washington National
DEN$June$2003$34$13$1611$11691$10024$Denver, CO: Denver International
Submission
AirportInfo.py
module