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
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