Question: + ID Page view A Read aloud Overview For this assignment you will be reading data from a file located on the internet. The file



+ ID Page view A Read aloud Overview For this assignment you will be reading data from a file located on the internet. The file is a listing of people's name, their blithdays and an ID number in CSV format. This me, however, has some problems with Mosty, some of the birthdays are in an Invalid format The other columns in the CSV will be guaranteed to be in a proper format. so your code can assume so Using the modules that we learned about you will design a program to do two things: witte an output file recording which lines in the file cannot be processad correctly due to an improperty formatted date, and alow a user to enter in an ID number and print out that person's Information Usaful Reminders 1. Read the assignment over a few times. At least twice. I always helps to have a clear picture of the overall assignment when understanding how to build a solution 2 Think about the problem for a while, and even try writing or drawing a solution using pencil and paper or a whiteboard 3. Before submitting the assignment, review the "Functional Requirements" section and make sure you hit all the points. This will not guarantee a perfect score, however Part 0 -Prerequisites 1. Our first step will be to create a github repo for this assignment. Please call it 18211_Assignment2 2 After that is completed, use it to clone this repository to a local folder in your development environment. Al development will be in this directory Part1 - Think about Design When approaching programming problems, you should first step back and think about the problem at hand. What exactly are we trying to accomplish, and what would be a good structure for your program? How would you break the larger problem into a set of smaller steps? One thing to think about in this case, is how you will want to store this data after reading it from the CSV Part I-Download the Data Write a function called download Data which takes in a string called uit. The purpose of this function is to download the contents located at me urt and return it to the cater. You should use urilib2 for this. Do not catch any exceptions here, as this will be done tater Partill - Process Data Witte a function called processData, which takes the contents of the file as the first parameter, processes the file ina byline, and retumsa dictionary that maps a person's D to a tuple of the form (name, birthday). The birthday needs to be a Datetime object, not a string. You will have to process the birthday, which has a format of odmmyyyy, and convert it into a Datetime object (NOTE: the time portion of the Datatimo object will be 0. since we are not setting a time, just a date: you can use the Date object Instead, you feel comfortable doing so) As stated above, the birthday might not be in a correct format. This might be due to a typo in the data (.o., a missing forward slash as in 0304.2014) or an invalid dato (le 04/13/2014). If this is the case, we want bg this oror using the logging module. This function should get a logger using the namo 'assignment. This logger will be configured later in the program The log massage should be sent to the ERROR level, and of the format "Error processing line nenum> for ID #cid>, where and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
