View the step-by-step solution to:

Instead, you will verify the output of your program by comparing the text file it produces to the sample output file I've provided. A convenient way...

I need a code that reads through a txt file and filters out a specific row of data, however my code only filters through half of the data below are the assignment description, sample output and my code

Screen Shot 2019-05-03 at 8.07.36 PM.pngScreen Shot 2019-05-03 at 8.08.09 PM.pngScreen Shot 2019-05-03 at 8.06.38 PM.png

Screen Shot 2019-05-03 at 8.06.38 PM.png

For this assignment, there are no test files (but that doesn't mean your submission won't be tested!). Instead, you will verify the output of your program
by comparing the text file it produces to the sample output file I've provided. A convenient way to compare two files from the command line is to use the 'diff' command on Linux/Mac or the 'FC' command on Windows. So, here's the problem description: You have been contracted by the Center for Disease Control to write a program to summarize some of their
population projection data; They have provided you with a chunk of their database to work on named 1_data.csv; You need to write a Python program
that can take that data file as input and produces a file called 'summary.txt' that contains the exact same text as the provided sample_output.txt file. The data that you should be outputting is for the year 2025. Make sure to use the file l/O methods we discussed in class for this homework. This assignment is due in class on Tuesday and online at midnight on Tuesday as well. The online portion of this assignment is pass/fail (either your code produces the correct text, or it does not). USING ANY MODULE WHICH SIDESTEPS THE INTENDED WORK OF THE ASSIGNMENT WILL RESULT IN A ZERO

Screen Shot 2019-05-03 at 8.07.36 PM.png

LET Peed all Lines ()`
Lines = ! !
Line = \
While Line IS MOVES
Line = inout !)
Lines _ EDbehind ( input (D)
EXCEDE EOFERPOPE
Line & None
BELUM LINES
LINES = PEGG ELL_ LINES ( )
Lines = Lines DDRCERTI
FOR LIVE in LINESE
pieces = Line _ split ( ` , D)
SEELE VEILLE = pieces ! ! !
population = pieces ! ! !
DRIVE (`^ SIEGE_ NEILLE* { {population } !)

Screen Shot 2019-05-03 at 8.08.09 PM.png

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question