http://codekata.com/kata/kata04-data-munging/
In weather.dat you’ll find daily weather data for Morristown, NJ for June 2002. Download this text file, then write a program to output the day number (column one) with the smallest temperature spread (the maximum temperature is the second column, the minimum the third column).
Dy MxT MnT
1 88 59
2 79 63
3 77 55
4 77 59
5 90 66
6 81 61
7 73 57
8 75 54
9 86 32
10 84 64
The file football.dat contains the results from the English Premier League for 2001/2. The columns labeled ‘F’ and ‘A’ contain the total number of goals scored for and against each team in that season (so Arsenal scored 79 goals against opponents, and had 36 goals scored against them). Write a program to print the name of the team with the smallest difference in ‘for’ and ‘against’ goals.
Team F A
Arsenal 79 36
Liverpool 67 30
Manchester_U 87 45
Newcastle 74 52
Leeds 53 37
Chelsea 66 38
West_Ham 48 57
Aston_Villa 46 47
Tottenham 49 53
Blackburn 55 51
Southampton 46 54