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
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 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started