Question

CPS 276 DOC02-- Assignment 02 Cost of Living Calculator Your client maintains job search website. As a service on their website, they need an application that compares costs of living between different metropolitan areas. Client will pay $780 for a complete application. Background Information: A person living in an area with a high cost of living will need higher income to maintain the same standard of living as someone living in an area with a low cost of living. For example, when comparing Ann Arbor with Honolulu, the higher costs of food and gasoline in Honolulu means that income doesn't go as far. A person with an annual income of $50,000 in Ann Arbor would need to make $81,756 in Hawaii in order to maintain the same standard of living. Project Specifications: A. Create a single-page application with one HTML form (5pts) B. The form will include 4 form elements: (10pts) 1. Location A select element 2. Wages A input element, type=text 3. Location B select element 4. Submit Button input element, type=submit C. The Location A & B fields contain a list of location. This data will be sourced from $COL_array in the included file. (5pts) D. Submit the form when the user selects two locations, enters the wages, and clicks the submit button. (5pts) E. If two locations are entered, and wages is a valid number, generate the cost of living for Location B. Use the following method: (10pts) 1. Obtain the COL index from the $COL_array for both locations. name them $col_index_a and $col_index_b; 2. use this formula: $wages_b = ($wages_a / $col_index_a ) * $col_index_b; F. As output, always display the form. If locations and wages were entered, re-popluate that data on the form. (5pts) G. If valid data is generated for $wages_b, print the following line below the form: (5pts) Making ${wage_a} in {loc_a} is the same as making $(wage_b) in {loc_b}. H. For reference, please refer to the screenshots provided in the supplemental file. The application should roughly look like the sample, and your output for wages_b should exactly match the values generated.

cost of living
this app compares relative cost of living between two locations.
Location A: dropdown A
Wages in location A: text input A


here is the file

 
cost of living
this app compares relative cost of living between two locations.
Location A: dropdown A
Wages in location A: text input A

<?php

$COL_array = array(
'AK - Anchorage' => 131.046,
'AK - Fairbanks' => 138.45,
'AK - Juneau' => 140.675,
'AK - Kodiak' => 128.805,
'AL - Anniston-Calhoun County' => 92.862,
'AL - Auburn-Opelika' => 99.881,
'AL - Birmingham' => 87.181,
'AL - Decatur-Hartselle' => 91.972,
'AL - Dothan' => 92.048,
'AL - Florence' => 92.006,
'AL - Huntsville' => 94.996,
'AL - Mobile' => 92.168,
'AL - Montgomery' => 97.07,
'AR - Conway' => 87.571,
'AR - Fayetteville' => 86.254,
'AR - Hot Springs' => 94.849,
'AR - Jonesboro' => 89.333,
'AR - Little Rock-North Little Rock' => 96.453,
'AZ - Flagstaff' => 112.498,
'AZ - Lake Havasu City' => 108.865,
'AZ - Phoenix' => 94.09,
'AZ - Prescott-Prescott Valley' => 100.78,
'AZ - Sierra Vista' => 99.534,
'AZ - Tucson' => 95.407,
'CA - Bakersfield' => 97.294,
'CA - Fresno' => 110.931,
'CA - Los Angeles-Long Beach' => 131.557,
'CA - Oakland' => 136.176,
'CA - Orange County' => 143.256,
'CA - Palm Springs' => 122.346,
'CA - Riverside City' => 111.876,
'CA - San Diego' => 130.876,
'CA - San Francisco' => 161.508,
'CA - San Jose' => 152.657,
'CA - Truckee-Nevada County' => 145.179,
'CO - Colorado Springs' => 93.104,
'CO - Denver' => 105.063,
'CO - Glenwood Springs' => 109.033,
'CO - Grand Junction' => 99.176,
'CO - Gunnison' => 113.621,
'CO - Pueblo' => 86.472,
'CT - Hartford' => 123.307,
'CT - New Haven' => 127.827,
'CT - Stamford' => 147.922,
'DC - Washington-Arlington-Alexandria' => 147.017,
'DE - Dover' => 101.021,
'DE - Wilmington' => 107.972,
'FL - Bradenton' => 96.856,
'FL - Cape Coral-Fort Myers' => 95.501,
'FL - Daytona Beach' => 96.206,
'FL - Fort Lauderdale' => 109.924,
'FL - Gainesville' => 99.454,
'FL - Jacksonville' => 95.155,
'FL - Miami-Dade County' => 108.457,
'FL - Orlando' => 96.925,
'FL - Palm Coast-Flagler County' => 90.108,
'FL - Punta Gorda-Charlotte Co' => 93.751,
'FL - Sarasota' => 99.864,
'FL - Tampa' => 91.501,
'FL - Vero Beach-Indian River' => 97.827,
'GA - Albany' => 91.139,
'GA - Atlanta' => 99.104,
'GA - Augusta-Aiken' => 92.059,
'GA - Douglas' => 90.088,
'GA - Duluth-Gwinnett County' => 98.708,
'GA - Marietta' => 96.297,
'GA - Savannah' => 91.5,
'GA - Valdosta' => 95.022,
'HI - Honolulu' => 167.163,
'IA - Ames' => 95.653,
'IA - Burlington' => 92.908,
'IA - Cedar Rapids' => 93.39,
'IA - Davenport-Moline-Rock Is' => 98.062,
'IA - Des Moines' => 90.504,
'IA - Dubuque' => 94.449,
'IA - Iowa City' => 101.549,
'IA - Mason City' => 93.305,
'IA - Waterloo-Cedar Falls' => 93.072,
'ID - Boise' => 94.573,
'ID - Idaho Falls' => 88.256,
'ID - Twin Falls' => 90.384,
'IL - Carbondale' => 94.396,
'IL - Champaign-Urbana' => 99.063,
'IL - Chicago' => 114.111,
'IL - Danville' => 89.335,
'IL - Decatur' => 90.728,
'IL - Galesburg' => 91.217,
'IL - Joliet-Will County' => 100.117,
'IL - Peoria' => 95.642,
'IL - Quincy' => 95.152,
'IL - Rockford' => 89.872,
'IL - Springfield' => 89.597,
'IN - Elkhart-Goshen' => 93.409,
'IN - Evansville' => 94.097,
'IN - Fort Wayne-Allen County' => 95.305,
'IN - Lafayette' => 91.959,
'IN - Muncie' => 88.352,
'IN - Richmond' => 85.668,
'IN - South Bend' => 92.687,
'KS - Dodge City' => 92.812,
'KS - Garden City' => 96.178,
'KS - Hutchinson' => 92.927,
'KS - Manhattan' => 94.696,
'KS - Salina' => 88.374,
'KS - Topeka' => 93.491,
'KS - Wichita' => 91.707,
'KY - Covington' => 90.091,
'KY - Lexington' => 91.926,
'KY - Louisville' => 92.535,
'KY - Paducah' => 92.909,
'LA - Baton Rouge' => 92.768,
'LA - Hammond' => 92.387,
'LA - Houma-Terrebonne Parish' => 97.78,
'LA - Lafayette' => 99.465,
'LA - Lake Charles' => 94.996,
'LA - Monroe' => 93.577,
'LA - Shreveport-Bossier City' => 99.056,
'LA - Slidell-St. Tammany Parish' => 95.77,
'MA - Boston' => 137.082,
'MA - Pittsfield' => 102.146,
'MD - Baltimore' => 117.538,
'MD - Bethesda-Gaithersburg-Frederick' => 131.942,
'ME - Portland' => 112.529,
'MI - Ann Arbor' => 102.232,
'MI - Detroit' => 95.844,
'MI - Kalamazoo' => 87.351,
'MN - Mankato' => 95.082,
'MN - Minneapolis' => 111.592,
'MN - Rochester' => 105.254,
'MN - St. Cloud' => 95.704,
'MN - St. Paul' => 110.355,
'MO - Columbia' => 91.473,
'MO - Jefferson City' => 97.608,
'MO - Joplin' => 90.498,
'MO - Kansas City' => 99.799,
'MO - Springfield' => 89.806,
'MO - St. Louis' => 91.043,
'MS - Hattiesburg' => 93.234,
'MS - Jackson' => 96.881,
'MS - Pascagoula' => 91.801,
'MS - Tupelo' => 88.808,
'MT - Bozeman' => 99.166,
'MT - Kalispell' => 100.131,
'NC - Asheville' => 101.424,
'NC - Burlington' => 95.832,
'NC - Chapel Hill' => 115.338,
'NC - Charlotte' => 92.743,
'NC - Dare County' => 108.623,
'NC - Durham' => 90.81,
'NC - Fayetteville' => 96.197,
'NC - Gastonia' => 91.667,
'NC - Greenville' => 96.325,
'NC - Jacksonville' => 96.541,
'NC - Kinston' => 93.589,
'NC - Marion-McDowell County' => 94.329,
'NC - Raleigh' => 92.842,
'NC - Thomasville-Lexington' => 89.105,
'NC - Wilmington' => 98.681,
'NC - Winston-Salem' => 90.181,
'ND - Fargo-Moorhead' => 94.056,
'ND - Minot' => 104.066,
'NE - Hastings' => 92.887,
'NE - Lincoln' => 93.232,
'NE - Omaha' => 88.626,
'NH - Manchester' => 120.482,
'NJ - Bergen-Passaic' => 128.224,
'NJ - Middlesex-Monmouth' => 124.492,
'NJ - Newark-Elizabeth' => 131.739,
'NM - Carlsbad' => 97.486,
'NM - Farmington' => 97.856,
'NM - Las Cruces' => 99.018,
'NM - Los Alamos' => 106.236,
'NM - Rio Rancho' => 97.375,
'NV - Las Vegas' => 98.764,
'NV - Reno-Sparks' => 92.201,
'NY - Albany' => 110.637,
'NY - Buffalo' => 99.511,
'NY - Dutchess County' => 122.633,
'NY - Ithaca' => 103.892,
'NY - Nassau County' => 139.091,
'NY - New York (Brooklyn)' => 185.015,
'NY - New York (Manhattan)' => 223.425,
'NY - New York (Queens)' => 154.873,
'NY - Plattsburgh' => 101.316,
'NY - Rochester' => 98.845,
'OH - Akron' => 98.984,
'OH - Ashland' => 88.874,
'OH - Cincinnati' => 92.902,
'OH - Cleveland' => 99.221,
'OH - Columbus' => 91.686,
'OH - Dayton' => 93.494,
'OH - Findlay' => 96.912,
'OH - Lima' => 93.6,
'OH - Wooster' => 89.819,
'OH - Youngstown-Warren' => 90.685,
'OK - Ardmore' => 84.017,
'OK - Edmond' => 93.842,
'OK - Enid' => 93.052,
'OK - Muskogee' => 87.529,
'OK - Norman' => 90.983,
'OK - Oklahoma City' => 91.072,
'OK - Ponca City' => 89.808,
'OK - Pryor Creek' => 85.206,
'OK - Stillwater' => 92.122,
'OK - Tulsa' => 89.581,
'OR - Eugene' => 109.547,
'OR - Klamath Falls' => 98.023,
'OR - Portland' => 117.53,
'PA - Allentown' => 105.735,
'PA - Harrisburg' => 102.365,
'PA - Indiana County' => 94.535,
'PA - Johnstown' => 94.316,
'PA - Philadelphia' => 123.645,
'PA - Pittsburgh' => 94.863,
'PA - Williamsport-Lycoming Co' => 95.472,
'PA - York County' => 102.912,
'RI - Providence' => 125.148,
'SC - Anderson' => 90.147,
'SC - Beaufort' => 99.282,
'SC - Camden' => 98.57,
'SC - Charleston-N Charleston' => 97.313,
'SC - Columbia' => 94.632,
'SC - Greenville' => 92.506,
'SC - Hilton Head Island' => 115.133,
'SC - Myrtle Beach' => 95.526,
'SC - Sumter' => 93.266,
'SD - Pierre' => 100.449,
'SD - Sioux Falls' => 95.677,
'TN - Chattanooga' => 93.894,
'TN - Cleveland' => 92.591,
'TN - Cookeville' => 86.161,
'TN - Dyersburg' => 89.267,
'TN - Jackson-Madison County' => 90.4,
'TN - Knoxville' => 89.482,
'TN - Memphis' => 84.449,
'TN - Morristown' => 91.306,
'TN - Murfreesboro-Smyrna' => 87.628,
'TN - Nashville-Franklin' => 89.971,
'TX - Amarillo' => 94.336,
'TX - Athens-Henderson County' => 89.163,
'TX - Austin' => 93.236,
'TX - Beaumont' => 97.581,
'TX - Brazoria County' => 86.962,
'TX - Brownsville' => 86.534,
'TX - Bryan-College Station' => 92.593,
'TX - Conroe' => 90.639,
'TX - Corpus Christi' => 90.083,
'TX - Dallas' => 96.898,
'TX - Denton' => 92.807,
'TX - El Paso' => 91.73,
'TX - Fort Worth' => 93.314,
'TX - Harlingen' => 81.551,
'TX - Houston' => 90.899,
'TX - Lubbock' => 89.516,
'TX - McAllen' => 84.994,
'TX - Midland' => 95.602,
'TX - Nacogdoches' => 95.478,
'TX - Odessa' => 90.061,
'TX - Paris' => 92.402,
'TX - Plano' => 96.052,
'TX - Round Rock' => 91.07,
'TX - San Angelo' => 89.559,
'TX - San Antonio' => 92.909,
'TX - San Marcos' => 87.979,
'TX - Seguin' => 92.309,
'TX - Sherman-Denison' => 88.188,
'TX - Temple' => 85.912,
'TX - Texarkana' => 90.48,
'TX - Tyler' => 95.044,
'TX - Waco' => 84.751,
'TX - Weatherford' => 92.033,
'TX - Wichita Falls' => 89.416,
'UT - Cedar City' => 88.215,
'UT - Ogden' => 90.43,
'UT - Provo-Orem' => 90.297,
'UT - Salt Lake City' => 95.081,
'UT - St. George' => 91.449,
'VA - Blacksburg' => 95.031,
'VA - Charlottesville' => 104.679,
'VA - Danville City' => 91.795,
'VA - Hampton Roads-SE Virginia' => 104.948,
'VA - Harrisonburg' => 97.283,
'VA - Lexington-Buena Vista-Rockbridge' => 93.982,
'VA - Lynchburg' => 91.908,
'VA - Richmond' => 99.609,
'VA - Roanoke' => 93.316,
'VA - Staunton-Augusta County' => 94.97,
'VA - Winchester' => 102.415,
'VT - Burlington-Chittenden Co' => 121.789,
'WA - Everett' => 109.571,
'WA - Kennewick-Richland-Pasco' => 98.265,
'WA - Moses Lake' => 93.009,
'WA - Olympia' => 104.985,
'WA - Seattle' => 115.688,
'WA - Spokane' => 94.501,
'WA - Tacoma' => 106.179,
'WA - Vancouver' => 98.642,
'WA - Yakima' => 92.596,
'WI - Appleton' => 93.54,
'WI - Eau Claire' => 91.274,
'WI - Janesville' => 97.755,
'WI - Madison' => 107.069,
'WI - Marshfield' => 96.851,
'WI - Milwaukee-Waukesha' => 99.57,
'WI - Wausau' => 95.104,
'WV - Charleston' => 94.088,
'WV - Martinsburg-Berkeley County' => 91.859,
'WV - Morgantown' => 105.14,
'WY - Cheyenne' => 95.86
);

0 0
Add a comment Improve this question Transcribed image text
Answer #1

index.php

<?php

include('col_data.php');

if(isset($_POST['location_a'])){
    $current1 = $_POST['location_a'];
}else{
    $current1 = '';
}

if(isset($_POST['location_b'])){
    $current2 = $_POST['location_b'];
}else{
    $current2 = '';
}

if(isset($_POST['wages_a'])){
    $wages_a = $_POST['wages_a'];
}else{
    $wages_a = '';
}
?>

<form method='post' action='index.php'>
   <table border='1'>
       <tr>
           <th>Cost of Living Calculator</th>
       </tr>
  
       <tr>
           <th>This application compares the relative cost of living between two locations.</th>
       </tr>
          
  
       <tr>
           <td>Location A:
                            <select name='location_a'>
                                <option value="0">Select a City</option>
                        <?php
                                foreach($COL_array as $city1 => $moneyA){
                                    if($city1 == $current1){
                                         $s = "selected";
                                    }else{
                                         $s="";
                                    }
                                      echo "<option value='$city1' $s >$city1</option>";
                                    }
                                 
                        ?>
                            </select>
       </tr>
       <tr>  
          
                    <td>Wages in Location A: $<input type='text' name='wages_a' value='<?=$wages_a?>'/><br/>
                    </td>
       </tr>
       <tr>
           <td>Location B:
                            <select name='location_b'>
                                <option value="0">Select a City</option>
                        <?php
                                foreach($COL_array as $city2 => $moneyB){
                                    if($city2 == $current2){
                                         $s = "selected";
                                    }else{
                                         $s="";
                                    }
                                      echo "<option value='$city2' $s >$city2</option>";
                                    }
                        ?>
                            </select>
          
       </tr>
       <tr>          
           <td><input type='submit' value='Submit Form'/></td>
       </tr>
   </table>
</form>

<?php
//make sure we have a price
if($current1 && $current2){
    $moneyA = $COL_array[$current1];
    $moneyB = $COL_array[$current2];
    $wages_b = number_format((($wages_a / $moneyA ) * $moneyB), 2);
    echo "Making $$wages_a in $current1 is the same as making $wages_b in $current2." ;
  
}


col_data.php

<?php

$COL_array = array(
   'AK - Anchorage' => 131.285,
   'AK - Fairbanks' => 138.811,
   'AK - Juneau' => 140.731,
   'AK - Kodiak' => 128.637,
   'AL - Anniston' => 92.293,
   'AL - Auburn' => 99.407,
   'AL - Birmingham' => 87.331,
   'AL - Decatur-Hartselle' => 91.17,
   'AL - Dothan' => 92.771,
   'AL - Florence' => 92.506,
   'AL - Huntsville' => 94.124,
   'AL - Mobile' => 92.82,
   'AL - Montgomery' => 97.189,
   'AR - Conway' => 87.071,
   'AR - Fayetteville' => 86.547,
   'AR - Hot Springs' => 94.961,
   'AR - Jonesboro' => 89.496,
   'AR - Little Rock' => 96.016,
   'AZ - Flagstaff' => 112.67,
   'AZ - Lake Havasu City' => 108.21,
   'AZ - Phoenix' => 94.708,
   'AZ - Prescott-Prescott Valley' => 100.163,
   'AZ - Sierra Vista' => 99.003,
   'AZ - Tucson' => 95.425,
   'CA - Bakersfield' => 97.67,
   'CA - Fresno' => 110.765,
   'CA - Los Angeles' => 131.32,
   'CA - Oakland' => 136.244,
   'CA - Orange County' => 143.334,
   'CA - Palm Springs' => 122.641,
   'CA - Riverside City' => 111.96,
   'CA - San Diego' => 130.619,
   'CA - San Francisco' => 161.452,
   'CA - San Jose' => 152.691,
   'CA - Truckee-Nevada County' => 145.256,
   'CO - Colorado Springs' => 93.745,
   'CO - Denver' => 105.098,
   'CO - Glenwood Springs' => 109.586,
   'CO - Grand Junction' => 99.914,
   'CO - Gunnison' => 113.868,
   'CO - Pueblo' => 86.093,
   'CT - Hartford' => 123.038,
   'CT - New Haven' => 127.689,
   'CT - Stamford' => 147.281,
   'DC - Washington' => 147.108,
   'DE - Dover' => 101.236,
   'DE - Wilmington' => 107.243,
   'FL - Bradenton' => 96.603,
   'FL - Cape Coral' => 95.252,
   'FL - Daytona Beach' => 96.912,
   'FL - Fort Lauderdale' => 109.813,
   'FL - Gainesville' => 99.959,
   'FL - Jacksonville' => 95.076,
   'FL - Miami-Dade County' => 108.815,
   'FL - Orlando' => 96.385,
   'FL - Palm Coast' => 90.746,
   'FL - Punta Gorda' => 93.58,
   'FL - Sarasota' => 99.704,
   'FL - Tampa' => 91.989,
   'FL - Vero Beach' => 97.914,
   'GA - Albany' => 91.345,
   'GA - Atlanta' => 99.949,
   'GA - Augusta' => 92.533,
   'GA - Douglas' => 90.797,
   'GA - Duluth' => 98.641,
   'GA - Marietta' => 96.788,
   'GA - Savannah' => 91.542,
   'GA - Valdosta' => 95.738,
   'HI - Honolulu' => 167.375,
   'IA - Ames' => 95.456,
   'IA - Burlington' => 92.607,
   'IA - Cedar Rapids' => 93.468,
   'IA - Davenport' => 98.494,
   'IA - Des Moines' => 90.297,
   'IA - Dubuque' => 94.749,
   'IA - Iowa City' => 101.601,
   'IA - Mason City' => 93.532,
   'IA - Cedar Falls' => 93.991,
   'ID - Boise' => 94.205,
   'ID - Idaho Falls' => 88.784,
   'ID - Twin Falls' => 90.904,
   'IL - Carbondale' => 94.018,
   'IL - Champaign-Urbana' => 99.743,
   'IL - Chicago' => 114.98,
   'IL - Danville' => 89.833,
   'IL - Decatur' => 90.128,
   'IL - Galesburg' => 91.726,
   'IL - Joliet' => 100.413,
   'IL - Peoria' => 95.832,
   'IL - Quincy' => 95.716,
   'IL - Rockford' => 89.327,
   'IL - Springfield' => 89.177,
   'IN - Elkhart-Goshen' => 93.666,
   'IN - Evansville' => 94.859,
   'IN - Fort Wayne' => 95.974,
   'IN - Lafayette' => 91.307,
   'IN - Muncie' => 88.648,
   'IN - Richmond' => 85.516,
   'IN - South Bend' => 92.046,
   'KS - Dodge City' => 92.024,
   'KS - Garden City' => 96.972,
   'KS - Hutchinson' => 92.652,
   'KS - Manhattan' => 94.491,
   'KS - Salina' => 88.466,
   'KS - Topeka' => 93.948,
   'KS - Wichita' => 91.24,
   'KY - Covington' => 90.068,
   'KY - Lexington' => 91.481,
   'KY - Louisville' => 92.232,
   'KY - Paducah' => 92.272,
   'LA - Baton Rouge' => 92.265,
   'LA - Hammond' => 92.137,
   'LA - Houma' => 97.29,
   'LA - Lafayette' => 99.008,
   'LA - Lake Charles' => 94.117,
   'LA - Monroe' => 93.123,
   'LA - Shreveport' => 99.136,
   'LA - Slidell' => 95.843,
   'MA - Boston' => 137.536,
   'MA - Pittsfield' => 102.967,
   'MD - Baltimore' => 117.559,
   'MD - Bethesda' => 131.863,
   'ME - Portland' => 112.145,
   'MI - Ann Arbor' => 102.225,
   'MI - Detroit' => 95.723,
   'MI - Kalamazoo' => 87.119,
   'MN - Mankato' => 95.532,
   'MN - Minneapolis' => 111.371,
   'MN - Rochester' => 105.635,
   'MN - St. Cloud' => 95.577,
   'MN - St. Paul' => 110.395,
   'MO - Columbia' => 91.607,
   'MO - Jefferson City' => 97.229,
   'MO - Joplin' => 90.886,
   'MO - Kansas City' => 99.074,
   'MO - Springfield' => 89.178,
   'MO - St. Louis' => 91.126,
   'MS - Hattiesburg' => 93.141,
   'MS - Jackson' => 96.658,
   'MS - Pascagoula' => 91.358,
   'MS - Tupelo' => 88.413,
   'MT - Bozeman' => 99.923,
   'MT - Kalispell' => 100.494,
   'NC - Asheville' => 101.703,
   'NC - Burlington' => 95.931,
   'NC - Chapel Hill' => 115.611,
   'NC - Charlotte' => 92.826,
   'NC - Dare County' => 108.067,
   'NC - Durham' => 90.454,
   'NC - Fayetteville' => 96.362,
   'NC - Gastonia' => 91.034,
   'NC - Greenville' => 96.013,
   'NC - Jacksonville' => 96.225,
   'NC - Kinston' => 93.179,
   'NC - Marion' => 94.238,
   'NC - Raleigh' => 92.948,
   'NC - Thomasville' => 89.297,
   'NC - Wilmington' => 98.769,
   'NC - Winston-Salem' => 90.32,
   'ND - Fargo' => 94.932,
   'ND - Minot' => 104.347,
   'NE - Hastings' => 92.714,
   'NE - Lincoln' => 93.54,
   'NE - Omaha' => 88.575,
   'NH - Manchester' => 120.6,
   'NJ - Bergen' => 128.613,
   'NJ - Middlesex' => 124.753,
   'NJ - Newark-Elizabeth' => 131.726,
   'NM - Carlsbad' => 97.754,
   'NM - Farmington' => 97.411,
   'NM - Las Cruces' => 99.085,
   'NM - Los Alamos' => 106.168,
   'NM - Rio Rancho' => 97.334,
   'NV - Las Vegas' => 98.579,
   'NV - Reno-Sparks' => 92.87,
   'NY - Albany' => 110.265,
   'NY - Buffalo' => 99.19,
   'NY - Dutchess County' => 122.697,
   'NY - Ithaca' => 103.332,
   'NY - Nassau County' => 139.643,
   'NY - New York (Brooklyn)' => 185.059,
   'NY - New York (Manhattan)' => 223.366,
   'NY - New York (Queens)' => 154.656,
   'NY - Plattsburgh' => 101.284,
   'NY - Rochester' => 98.544,
   'OH - Akron' => 98.893,
   'OH - Ashland' => 88.232,
   'OH - Cincinnati' => 92.841,
   'OH - Cleveland' => 99.663,
   'OH - Columbus' => 91.551,
   'OH - Dayton' => 93.773,
   'OH - Findlay' => 96.01,
   'OH - Lima' => 93.265,
   'OH - Wooster' => 89.313,
   'OH - Youngstown' => 90.585,
   'OK - Ardmore' => 84.865,
   'OK - Edmond' => 93.926,
   'OK - Enid' => 93.339,
   'OK - Muskogee' => 87.591,
   'OK - Norman' => 90.68,
   'OK - Oklahoma City' => 91.749,
   'OK - Ponca City' => 89.675,
   'OK - Pryor Creek' => 85.848,
   'OK - Stillwater' => 92.084,
   'OK - Tulsa' => 89.254,
   'OR - Eugene' => 109.719,
   'OR - Klamath Falls' => 98.349,
   'OR - Portland' => 117.444,
   'PA - Allentown' => 105.416,
   'PA - Harrisburg' => 102.681,
   'PA - Indiana County' => 94.087,
   'PA - Johnstown' => 94.474,
   'PA - Philadelphia' => 123.047,
   'PA - Pittsburgh' => 94.742,
   'PA - Williamsport' => 95.758,
   'PA - York County' => 102.59,
   'RI - Providence' => 125.636,
   'SC - Anderson' => 90.989,
   'SC - Beaufort' => 99.432,
   'SC - Camden' => 98.3,
   'SC - Charleston' => 97.541,
   'SC - Columbia' => 94.205,
   'SC - Greenville' => 92.31,
   'SC - Hilton Head Island' => 115.806,
   'SC - Myrtle Beach' => 95.517,
   'SC - Sumter' => 93.895,
   'SD - Pierre' => 100.671,
   'SD - Sioux Falls' => 95.444,
   'TN - Chattanooga' => 93.234,
   'TN - Cleveland' => 92.263,
   'TN - Cookeville' => 86.124,
   'TN - Dyersburg' => 89.983,
   'TN - Jackson' => 90.937,
   'TN - Knoxville' => 89.972,
   'TN - Memphis' => 84.068,
   'TN - Morristown' => 91.192,
   'TN - Murfreesboro' => 87.691,
   'TN - Nashville-Franklin' => 89.417,
   'TX - Amarillo' => 94.635,
   'TX - Athens' => 89.108,
   'TX - Austin' => 93.098,
   'TX - Beaumont' => 97.722,
   'TX - Brazoria County' => 86.582,
   'TX - Brownsville' => 86.145,
   'TX - College Station' => 92.465,
   'TX - Conroe' => 90.34,
   'TX - Corpus Christi' => 90.735,
   'TX - Dallas' => 96.102,
   'TX - Denton' => 92.33,
   'TX - El Paso' => 91.167,
   'TX - Fort Worth' => 93.401,
   'TX - Harlingen' => 81.87,
   'TX - Houston' => 90.371,
   'TX - Lubbock' => 89.711,
   'TX - McAllen' => 84.676,
   'TX - Midland' => 95.888,
   'TX - Nacogdoches' => 95.606,
   'TX - Odessa' => 90.348,
   'TX - Paris' => 92.332,
   'TX - Plano' => 96.84,
   'TX - Round Rock' => 91.61,
   'TX - San Angelo' => 89.456,
   'TX - San Antonio' => 92.824,
   'TX - San Marcos' => 87.548,
   'TX - Seguin' => 92.428,
   'TX - Sherman' => 88.891,
   'TX - Temple' => 85.739,
   'TX - Texarkana' => 90.12,
   'TX - Tyler' => 95.309,
   'TX - Waco' => 84.375,
   'TX - Weatherford' => 92.227,
   'TX - Wichita Falls' => 89.407,
   'UT - Cedar City' => 88.097,
   'UT - Ogden' => 90.808,
   'UT - Provo-Orem' => 90.551,
   'UT - Salt Lake City' => 95.561,
   'UT - St. George' => 91.149,
   'VA - Blacksburg' => 95.286,
   'VA - Charlottesville' => 104.662,
   'VA - Danville City' => 91.478,
   'VA - Hampton Roads' => 104.452,
   'VA - Harrisonburg' => 97.064,
   'VA - Lexington' => 93.348,
   'VA - Lynchburg' => 91.823,
   'VA - Richmond' => 99.774,
   'VA - Roanoke' => 93.025,
   'VA - Staunton' => 94.711,
   'VA - Winchester' => 102.381,
   'VT - Burlington' => 121.372,
   'WA - Everett' => 109.044,
   'WA - Kennewick' => 98.222,
   'WA - Moses Lake' => 93.981,
   'WA - Olympia' => 104.499,
   'WA - Seattle' => 115.046,
   'WA - Spokane' => 94.529,
   'WA - Tacoma' => 106.927,
   'WA - Vancouver' => 98.937,
   'WA - Yakima' => 92.269,
   'WI - Appleton' => 93.047,
   'WI - Eau Claire' => 91.246,
   'WI - Janesville' => 97.644,
   'WI - Madison' => 107.274,
   'WI - Marshfield' => 96.652,
   'WI - Milwaukee' => 99.74,
   'WI - Wausau' => 95.082,
   'WV - Charleston' => 94.204,
   'WV - Martinsburg' => 91.302,
   'WV - Morgantown' => 105.23,
   'WY - Cheyenne' => 95.489
);

Add a comment
Know the answer?
Add Answer to:
CPS 276 DOC02-- Assignment 02 Cost of Living Calculator Your client maintains job search website. As...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Question 2: How do the average credit scores of people living in various cities in the...

    Question 2: How do the average credit scores of people living in various cities in the US differ? The file Credit Score Data of 143 American cities is provided in Canvas. Construct a histogram Create a Five Summary Report Calculate Mean, Variance and Standard Deviation   What conclusion can you reach concerning the average credit scores of people living in different American cities? City State Average Credit Score Detroit Mi 743 New York NY 762 Minneapolis MN 787 Hartford CT 774...

  • CT 60, 894 NY 1,029,888 MO 245,425 MS 92,831 CO 251,595 ME 60,894 PA 573,815 NE...

    CT 60, 894 NY 1,029,888 MO 245,425 MS 92,831 CO 251,595 ME 60,894 PA 573,815 NE 80,432 NC 370,883 ID 64,514 MA 380, 277 IL 574,429 ND 36,863 SC 176,365 MT 45,359 NH 70,699 IN 252,150 SD 38,950 TN 246,025 UT 119, 240 RI 47.731 MI 407,475 AL 165, 716 VA 384,479 WY 25,707 VT 31,284 OH 477, 536 AR 102,755 WV 65,138 AK 37,053 DE 42.655 WI 246,818 FL 876,422 AZ 257,505 CA 1,858,421 DC 44,361 IA 122,914 GA...

  • TravelAir.com samples domestic airline flights to explore the relationship between airfare and distance. The service would...

    TravelAir.com samples domestic airline flights to explore the relationship between airfare and distance. The service would like to know if there is a correlation between airfare and flight distance. If there is a correlation, what percentage of the variation in airfare is accounted for by distance? How much does each additional mile add to the fare? The data follow. Distance Fare 636 $109 2,395 252 2,176 221 605 151 403 138 1,258 209 254 627 259 264 2,342 215 177...

  • The Cost of Living in Selected U.S. Cities Cost-of-living index City number New York (Manhattan) 216.7...

    The Cost of Living in Selected U.S. Cities Cost-of-living index City number New York (Manhattan) 216.7 San Francisco, CA 164.0 Washington, DC 140.1 Los Angeles, CA 136.4 Boston, MA 132.5 Philadelphia, PA 126.5 Seattle, WA 121.4 Chicago, IL 116.9 Richmond, VA 104.5 Phoenix, AZ 100.7 Detroit, MI 99.4 Atlanta, GA 95.6 Charlotte, NC 93.2 Dallas, TX 91.9 Source US Census Annual Average 2010 The table shown here gives a cost-of-living index for 14 different cities. Currently, you are living and...

  • The Cost of Living in Selected U.S. Cities Cost-of-living index City number New York (Manhattan) 216.7...

    The Cost of Living in Selected U.S. Cities Cost-of-living index City number New York (Manhattan) 216.7 San Francisco, CA 164.0 Washington, DC 140.1 Los Angeles, CA 136.4 Boston, MA 132.5 Philadelphia, PA 126,5 Seattle, WA 121.4 Chicago, IL 116.9 Richmond, VA 104.5 Phoenix, AZ 100,7 Detroit, MI 99.4 Atlanta, GA 95.6 932 Charlotto. Ne Dallas, TX 91.9 The table shown here gives a cost-of-living index for 14 different cities. Currently, you are living and working in Atlanta and earning $75000...

  • and MT NE NV ND NH NJ NM NY NC OH OK OR PA RI SC...

    and MT NE NV ND NH NJ NM NY NC OH OK OR PA RI SC SD TN TX UT VA VT WA WV WI WY EM 95813624 7262 1430278 3 22896 03171 12111 1165380 2111211 1.0160 72221 8 tat-AL AK AZ CA CO CN DE DC FL GA HI ID IL IN IA KA KY LA ME MD MA MI MN MS MO ONEC EDA-NSO git M w w M w w E E E E E W W...

  • With the multiple linear regression equation in (2), what will be the alumni-giving rate with the...

    With the multiple linear regression equation in (2), what will be the alumni-giving rate with the graduation rate as 85%, 60% of classes with fewer than 20 students, and student-faculty ratio as 12? (20%). State Graduation Rate 85 79 93 85 75 Alumni Giving Rate 25 % of Classes Student-Faculty Under 20 Ratio 39 13 68 8 60 8 33 40 65 3 10 46 28 67 72 52 8 31 89 90 45 69 72 12 7 13 10...

  • Suppose we wish to build a multiple regression model to predict the cost of rent (dollars)...

    Suppose we wish to build a multiple regression model to predict the cost of rent (dollars) in a city based on population (thousands of people), and income (thousands of dollars). Use the alpha level of 0.05. City Monthly Rent ($) 2018 Population (Thousands) 2010 Median Income (Thousands of Dollars) Denver, CO 998 586.158 45.438 Birmingham, AL 711 212.237 301.704 San Diego, CA 1414 1307.402 61.962 Gainesville, FL 741 124.354 28.653 Winston-Salem, NC 750 239.617 41.979 Memphis, TN 819 646.889 36.535...

  • An article reported the estimated percentage of households with only wireless phone service (no land line)...

    An article reported the estimated percentage of households with only wireless phone service (no land line) for the 50 U.S. states and the District of Columbia. In the accompanying data table, each state was also classified into one of three geographical regions—West (W), Middle states (M), and East (E). Wireless % Region State Wireless % Region State 14.9 M AL 10.2 W MT 12.7 W AK 23.2 M NE 19.9 W AZ 10.8 W NV 23.6 M AR 16.9 M...

  • Business Statistics

    Alumni donations are an important source of revenue for college and universities. If administrators could determine the factors that could lead to increases in thepercentage of alumni who make a donation, they might be able to implement policies that could lead to increased revenues. Research shows that students who are moresatisfied with their contact with teachers are more likely to graduate. As a result, one might suspect that smaller class sizes and lower student-faculty ratios mightlead to a higher percentage...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT