Write a program which will efficiently perform the following operations (allow
the user to choose these from a menu):
The files of place information, which are based on
data from the U.S. Census Bureau,
have the following format on each line:
place name (40 characters wide; may contain spaces)
state abbreviation (2 characters)
population (10 characters, right justified)
degrees latitude (11 characters, prefixed + for North)
degrees longitude (12 characters, prefixed - for West or + for East)
For example, placesw.txt starts as follows:
Adak Station AK 4633 +51.842900 -176.640278
Akhiok AK 77 +56.977320 -154.217551
Akiachak AK 481 +60.871740 -161.403575
Akiak AK 285 +60.885659 -161.192264
Akutan AK 589 +54.136299 -165.786036
Alakanuk AK 544 +62.675611 -164.643602
Alcan AK 27 +62.722977 -141.188178
Aleknagik AK 185 +59.285485 -158.628962
Allakaket AK 170 +66.545170 -152.733117
Ambler AK 311 +67.076879 -157.918155
Amchitka AK 25 +51.567103 +178.877380
If the user chooses to read both files of place information, then the queries should search the
combined list of places. We will discuss appropriate data structures and algorithms in class
after the fall break; be prepared to make suggestions.