Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Modify the program from Lab 6 that displays the NYC historical population data. Your program should ask the user for the name of a borough

Modify the program from Lab 6 that displays the NYC historical population data. Your program should ask the user for the name of a borough and the name of the output file. The program should compute the minimum, maximum, average, median and standard deviation of the population of the borough entered by the user and then display the fraction of the population that has lived in that borough over time.

IMPORTANT: The grading script expects the new column to be called 'Fraction'

A sample run of the program:

Enter borough name: Brooklyn Enter output name: BrooklynFraction.png Min: 2017 Max: 2738175 Mean: 1252437.5384615385 Median: 1002564.5 Standard Deviation: 1153123.5551968655 

The file BrooklynFraction.png:image text in transcribed

Note: before submitting your program for grading, remove the commands that show the image (i.e. the ones that pop up the graphics window with the image). The program is graded on a server on the cloud and does not have a graphics window, so, the plt.show() and plt.imshow() commands will give an error. Instead, the files your program produces are compared pixel-by-pixel to the answer to check for correctness. Python IDLE

Fraction 0.35 0.30 0.25 0.20 0.15 0.10 1700 1750 1800 1900 1950 2000 1850 Year

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Can an employer be guilty of negligent hiring?

Answered: 1 week ago