In this project, you will process AWI data. Example data for 2014 and 2015 is pr
ID: 3848366 • Letter: I
Question
In this project, you will process AWI data. Example data for 2014 and 2015 is provided in the files year2014.txt and year2015.txt (2015 is the most recent year of complete data—the 2016 data isn’t available until October). The data is a table with the first row as the title and the second row defining the data fields; remaining rows are data. Note that the 2014 data is nicely formatted in columns, but the 2015 data is not. The URL for the data is: https://www.ssa.gov/cgibin/netcomp.cgi?year=2015
Using this PYTHON format
Sample Outputs
A few other specifics
import pylab def do plot (x vals, y Va ts, year) Plot x vals vs. y vals where each is a list of numbers of the same uength. pylab. xlabel Income pylab. label Cumulative Percent pylab. title Cumulative Percent for Income in +str(year) pylab, plot (x vals, vals) pylab. show def open file You fill in the doc string year str input Enter a year where 1990 year 2015 pass replace this line with your code def read file (fp) You fill in the doc string pass replace this line with your code def find average (data_lst): 'You fill in the doc string pass replace this line with your code def find median (data lst) 'You fill in the doc string pass replace this line with your code def get range data lst, percent) "You fill in the doc string pass replace this line with your code 2 def get percent(data ust, salary) 'You fill in the doc string'' pass replace this line with your code 7 def main Insert code here to determine year, average and median print ("For the year format (year) print ("The average income was $1:Explanation / Answer
main.py
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.