Checkpoint 11.10.1.
Construct the algorithm to find the largest difference. Assume
inFile
is already open.
Data: Temps.txt
Albany NY 22.2 71.1 38.6 Albuquerque NM 35.7 78.5 9.47 Anchorage AK 15.8 58.4 16.08 Atlanta GA 42.7 80 50.2 Austin TX 50.2 84.2 33.65 Baltimore MD 32.3 76.5 41.94 Boise ID 30.2 74.7 12.19 Chicago IL 22 73.3 36.27 Dallas TX 44.1 85 34.73 Denver CO 29.2 73.4 15.81 Duluth MN 8.4 65.5 31 Portland OR 39.9 68.1 37.07
>>
. Every piece of data is separated by whitespace and each line has exactly the same number of tokens. (If some of the cities had two word names like San Francisco
that would make things much harder!)
inFile
is already open.