Question: Using python, write code for problem. The text file Cities.txt is used in this problem and i have pasted contents of the file. Please also

Using python, write code for problem. The text file Cities.txt is used in this problem and i have pasted contents of the file. Please also put screenshot of your code.

Using python, write code for problem. The text file Cities.txt is used

New York,NY,80.1,82.7 Los Angeles,CA,36.9,38.84 Chicago,IL,29.0,28.7 Houston,TX,19.5,22.4 Phoenix,AZ,13.2,15.7 Philadelphia,PA,15.2,14.7 San Antonio,TX,11.4,13.5 San Diego,CA,12.2,12.8 Dallas,TX,11.9,12.4 San Jose,CA,8.9,9.5 Detroit,MI,9.5,9.3 Jacksonville,FL,7.4,8.2 Indianapolis,IN,7.8,8.1 San Francisco,CA,7.8,7.7 Columbus,OH,7.1,7.6 Austin,TX,6.6,7.5 Fort Worth,TX,5.3,6.9 Memphis,TN,6.5,6.8 Charlotte,NC,5.4,6.8 Baltimore,MD,6.5,6.5 El Paso,TX,5.6,6.1 Milwaukee,WI,6.0,6.1 Boston,MA,5.9,6.1 Seattle,WA,5.6,6.0 Nashville-Davidson,TN,5.5,6.0 

7. U.S. Cities The file cities.txt contains information about the 25 largest cities in the United States. Each line of the file has four fields name, state,population in 2000 (in 100,000s), and population in 2010 (in 100,000s). Write a program that creates a new file with each line containing the name of a city and its percentage population growth from 2000 to 2010. The cities should be in decreasing order by their percent popula- tion growth. The first four lines of the file cities .txt are as follows: New NY,80.1, 82.7 York, Los Angeles ,CA, 36. 9,38.84 Chicago, IL,29.0,28.7 Houston, TX,19.5,22.4

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!