bash-4.4$ g++ City.cpp p4test5.cpp -o t5.out bash-4.4$ ./t5.out < CityData10.txt Read in some cities: ... Checking Population MedianHeap... min = Cohoe AK 60.369 -151.306 1364 17 median = Butte AK 61.542 -149.033 3246 28 max = Anchorage AK 61.218 -149.900 291826 31 ===================================================== sanityCheck called ... max and min heap sizes are consistent MedianHeap::size() max and min heap sizes are within 1 of each other Sanity Check maxHeap... Sanity Check minHeap... Passed sanityCheck(). ===================================================== Checking Elevation MedianHeap... min = Bethel AK 60.792 -161.756 6080 1 median = Butte AK 61.542 -149.033 3246 28 max = Badger AK 64.800 -147.533 19482 144 ===================================================== sanityCheck called ... max and min heap sizes are consistent MedianHeap::size() max and min heap sizes are within 1 of each other Sanity Check maxHeap... Sanity Check minHeap... Passed sanityCheck(). ===================================================== bash-4.4$ ./t5.out < CityDataMD.txt Read in some cities: ... Checking Population MedianHeap... min = Upper_Marlboro MD 38.816 -76.750 631 7 median = Brandywine MD 38.697 -76.848 6719 70 max = Baltimore MD 39.290 -76.612 620961 10 ===================================================== sanityCheck called ... max and min heap sizes are consistent MedianHeap::size() max and min heap sizes are within 1 of each other Sanity Check maxHeap... Sanity Check minHeap... Passed sanityCheck(). ===================================================== Checking Elevation MedianHeap... min = North_Beach MD 38.707 -76.531 1978 0 median = Peppermill_Village MD 38.895 -76.887 4895 60 max = Mountain_Lake_Park MD 39.398 -79.382 2092 748 ===================================================== sanityCheck called ... max and min heap sizes are consistent MedianHeap::size() max and min heap sizes are within 1 of each other Sanity Check maxHeap... Sanity Check minHeap... Passed sanityCheck(). ===================================================== bash-4.4$ ./t5.out < CityDataUS.txt Read in some cities: ... Checking Population MedianHeap... min = Appling GA 33.546 -82.316 0 89 median = Metzger OR 45.447 -122.759 3765 69 max = New_York_City NY 40.714 -74.006 8175133 10 ===================================================== sanityCheck called ... max and min heap sizes are consistent MedianHeap::size() max and min heap sizes are within 1 of each other Sanity Check maxHeap... Sanity Check minHeap... Passed sanityCheck(). ===================================================== Checking Elevation MedianHeap... min = Mecca CA 33.572 -116.077 8577 -57 median = Auburn MI 43.603 -84.070 2087 188 max = Leadville CO 39.251 -106.293 2602 3097 ===================================================== sanityCheck called ... max and min heap sizes are consistent MedianHeap::size() max and min heap sizes are within 1 of each other Sanity Check maxHeap... Sanity Check minHeap... Passed sanityCheck(). ===================================================== bash-4.4$ exit Script done on 2018-11-16 15:37:59-05:00