Question
Note: In order to do this week's assignment, you will need to download this file , extract its contents, and use it as a base
Note: In order to do this week's assignment, you will need to download this file, extract its contents, and use it as a base for your assignment. In other words the three folders - fonts, images, and text_files - must all be stored at the root level of your project folder. You will add any other folder you need to (e.g. docs) as you go along.
For this assignment, you will need to submit a ZIP file containing all of the project files in this assignment that does the following:
- Opens up the XML file in the "text_files" folder
- Cleans out any non-ASCII characters from the file
- Saves the cleaned up file back to the file system under a new name
- Opens the cleaned up XML file
- For each employee in the XML file, adds name and title information to the file listed in the "profile_pic" field. All original images are stored in the "images" folder. All modified images must be stored under the "images/output_files/" folder
The rest of your implementation details are up to your discretion (including font, color, size, positioning), applying the things you have learned about Python so far. Please note, however, that you must organize any classes\functions you create into modules and produce documentation (using Pydoc) for your work using the principles discussed earlier in the class. Your code must also be flexible so it could handle any XML and set of images thrown at it.
Here is the content inside the XML file
Clancy Stuart
CEO
555-823-1388
clancy_stuart.jpg
Patricia OLeaery
Controller
555-823-1723
patricia_oleary.jpg
Julie MaloKopp
VP of Marketing
555-823-1530
juliemalokopp.jpg
Erik Headly
Salesperson
555-823-1262
erik_headly.jpg
Here is a screenshot of what the file looks like
Be sure to put comments in your code that clearly mark how you are performing your program logic. In the submission comments of this assignment, please place the repository URL of your file submission.
Name Size Kind Date Added Folder Folder week_03_files_assignment text_files employee_data.xml images patricia_oleary.jpg output_files juliemalokopp.jpg erik_headly.jpg clancy_stuart.jpg fonts A Syne-Regular.otf 852 bytes XML Folder 48 KB JPEG image Folder 52 KB JPEG image 48 KB JPEG image 53 KB JPEG image Folder Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM 128 KB OpenType font Name Size Kind Date Added Folder Folder week_03_files_assignment text_files employee_data.xml images patricia_oleary.jpg output_files juliemalokopp.jpg erik_headly.jpg clancy_stuart.jpg fonts A Syne-Regular.otf 852 bytes XML Folder 48 KB JPEG image Folder 52 KB JPEG image 48 KB JPEG image 53 KB JPEG image Folder Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM Jan 21, 2022 at 7:53 PM 128 KB OpenType fontStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started