Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 KB | None | 0 0
  1. This is the LECO software test. We would like you to write a Windows application for an “air freight” company. This application should compute the shortest straight-line (segmented) route from Albany to a series of delivery locations, input via a text file, and then back to Albany. The user should be able to view the progress of the computation and cancel it at any time. Use threading. The user interface should show a simple map of the best route. Some test data is included below. You are encouraged to use an algorithm that tests all permutations for the shortest route calculation. Computationally, this will probably limit the reasonable input set to 10-12 cities. You may assume 1 degree latitude = 1 degree longitude and a flat earth. We would like you to demonstrate inheritance by deriving your city class from a “coordinates” class. All code for this project must be your own unless you explicitly state exceptions and provide references. For example, an algorithm that iterates through all permutations may be non-trivial. We expect you should be able to complete this in an evening or two. Track your hours and send us what you have after no more than 6-10 hours effort. The remaining requirements for this application are left intentionally vague.
  2.  
  3.  
  4.  
  5. If there are portions of this test that you cannot complete due to of a lack of expertise or time, feel free to improvise. For example, if you do not have adequate threading skills, feel free to skip that portion of the requirement. There is no need for you to contact me for additional clarifications, or to ask permission to address the problem in a certain way. Use your best judgment. The point of this exercise is to allow you to demonstrate your skills to us, not to schedule a real-world flight.
  6.  
  7.  
  8.  
  9. Deliverables:
  10.  
  11. * Windows executable (written in Visual C#/WPF)
  12.  
  13. * All source code and development files needed to rebuild the executable.
  14.  
  15. * Accounting of hours spent (e.g. 3hrs Fri., 4hrs Sun.)
  16.  
  17.  
  18.  
  19. We will be grading:
  20.  
  21. * Code structure / maintainability
  22.  
  23. * Object oriented programming technique
  24.  
  25. * Threading technique
  26.  
  27. * User interface design
  28.  
  29. * Your approach to the permutations algorithm
  30.  
  31.  
  32.  
  33. The list of possible delivery locations are:
  34.  
  35. City,Latitude,Longitude
  36.  
  37. Albany (home base),42.67,73.75
  38.  
  39. Albuquerque,35.08,106.65
  40.  
  41. Amarillo,35.18,101.83
  42.  
  43. Anchorage,61.22,149.9
  44.  
  45. Atlanta,33.75,84.38
  46.  
  47. Austin,30.27,97.73
  48.  
  49. Baker,44.78,117.83
  50.  
  51. Baltimore,39.3,76.63
  52.  
  53. Bangor,44.8,68.78
  54.  
  55. Birmingham,33.5,86.83
  56.  
  57. Bismarck,46.8,100.78
  58.  
  59. Boise,43.6,116.22
  60.  
  61. Boston,42.35,71.08
  62.  
  63. Buffalo,42.92,78.83
  64.  
  65. Carlsbad,32.43,104.25
  66.  
  67. Charleston,32.78,79.93
  68.  
  69. Charleston,38.35,81.63
  70.  
  71. Charlotte,35.23,80.83
  72.  
  73. Cheyenne,41.15,104.87
  74.  
  75. Chicago,41.83,87.62
  76.  
  77. Cincinnati,39.13,84.5
  78.  
  79. Cleveland,41.47,81.62
  80.  
  81. Columbia,34,81.03
  82.  
  83. Columbus,40,83.02
  84.  
  85. Dallas,32.77,96.77
  86.  
  87. Denver,39.75,105
  88.  
  89. Des Moines,41.58,93.62
  90.  
  91. Detroit,42.33,83.05
  92.  
  93. Dubuque,42.52,90.67
  94.  
  95. Duluth,46.82,92.08
  96.  
  97. Eastport,44.9,67
  98.  
  99. El Centro,32.63,115.55
  100.  
  101. El Paso,31.77,106.48
  102.  
  103. Eugene,44.05,123.08
  104.  
  105. Fargo,46.87,96.8
  106.  
  107. Flagstaff,35.22,111.68
  108.  
  109. Fort Worth,32.72,97.32
  110.  
  111. Fresno,36.73,119.8
  112.  
  113. Grand Junction,39.08,108.55
  114.  
  115. Grand Rapids,42.97,85.67
  116.  
  117. Havre,48.55,109.72
  118.  
  119. Helena,46.58,112.03
  120.  
  121. Honolulu,21.3,157.83
  122.  
  123. Hot Springs,34.52,93.05
  124.  
  125. Houston,29.75,95.35
  126.  
  127. Idaho Falls,43.5,112.02
  128.  
  129. Indianapolis,39.77,86.17
  130.  
  131. Jackson,32.33,90.2
  132.  
  133. Jacksonville,30.37,81.67
  134.  
  135. Juneau,58.3,134.4
  136.  
  137. Kansas City,39.1,94.58
  138.  
  139. Key West,24.55,81.8
  140.  
  141. Knoxville,35.95,83.93
  142.  
  143. Las Vegas,36.17,115.2
  144.  
  145. Lewiston,46.4,117.03
  146.  
  147. Lincoln,40.83,96.67
  148.  
  149. Long Beach,33.77,118.18
  150.  
  151. Los Angeles,34.05,118.25
  152.  
  153. Louisville,38.25,85.77
  154.  
  155. Manchester,43,71.5
  156.  
  157. Memphis,35.15,90.05
  158.  
  159. Miami,25.77,80.2
  160.  
  161. Milwaukee,43.03,87.92
  162.  
  163. Minneapolis,44.98,93.23
  164.  
  165. Mobile,30.7,88.05
  166.  
  167. Montgomery,32.35,86.3
  168.  
  169. Montpelier,44.25,72.53
  170.  
  171. Nashville,36.17,86.78
  172.  
  173. Newark,40.73,74.17
  174.  
  175. New Orleans,29.95,90.07
  176.  
  177. New York,40.78,73.97
  178.  
  179. Nome,64.42,165.5
  180.  
  181. Oakland,37.8,122.27
  182.  
  183. Oklahoma City,35.43,97.47
  184.  
  185. Omaha,41.25,95.93
  186.  
  187. Philadelphia,39.95,75.17
  188.  
  189. Phoenix,33.48,112.07
  190.  
  191. Pierre,44.37,100.35
  192.  
  193. Pittsburgh,40.45,79.95
  194.  
  195. Portland,43.67,70.25
  196.  
  197. Portland,45.52,122.68
  198.  
  199. Providence,41.83,71.4
  200.  
  201. Raleigh,35.77,78.65
  202.  
  203. Reno,39.5,119.82
  204.  
  205. Richfield,38.77,112.08
  206.  
  207. Richmond,37.55,77.48
  208.  
  209. Roanoke,37.28,79.95
  210.  
  211. Sacramento,38.58,121.5
  212.  
  213. Savannah,32.08,81.08
  214.  
  215. Seattle,47.62,122.33
  216.  
  217. Shreveport,32.47,93.7
  218.  
  219. Sitka,57.17,135.25
  220.  
  221. Spokane,47.67,117.43
  222.  
  223. Springfield,39.8,89.63
  224.  
  225. Springfield,42.1,72.57
  226.  
  227. Springfield,37.22,93.28
  228.  
  229. Syracuse,43.03,76.13
  230.  
  231. Tampa,27.95,82.45
  232.  
  233. Toledo,41.65,83.55
  234.  
  235. Tulsa,36.15,95.98
  236.  
  237. Washington,38.88,77.03
  238.  
  239. Wichita,37.72,97.28
  240.  
  241. Wilmington,34.23,77.95
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement