Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

  1. Opens up the XML file in the "text_files" folder
  2. Cleans out any non-ASCII characters from the file
  3. Saves the cleaned up file back to the file system under a new name
  4. Opens the cleaned up XML file
  5. 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

image text in transcribed

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 font

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions