Question: Create a PHP application that calculates the population difference between two USA census years. The census year and population will be stored in a two

Create a PHP application that calculates the population difference between two USA census years. The census year and population will be stored in a two dimensional array. Your application should calculate the difference in population and display that difference. If the difference is negative, display a message that reflects the population decreased. If the deference is positive, display a message that indicates the population increased. If no change in population, then display a message that says no population change. See screenshots for examples. Format your population numbers with the function number_format() this will put the commas in. The census years will be drop down lists. The table that contains the census years and populations is listed below.

Opening screen

Population change from 1800 to 1900, note green indicates positive change. Please format your numbers with commas.

Population change from 2010 to 1980, note red indicates negative change. Please format your numbers with commas and remove the negative symbol.

Census Data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!