PRINCE GEORGE'S COMMUNITY COLLEGE
In this project, students will:
• select and use of appropriate Python modules and modules entities to complete specific automation task;
• complete basic file management tasks such as directory and file creation, renaming, and backup;
• archive files and documents using tools such as gzip.
As a system or network administrator, you will have to create identical system configurations and load identical documents or files on hundreds or thousands computers. Imagine a classroom with computers that are pre-loaded with certain software and documents to be used by students. This type of task can only be done using a script that will repeat the same actions on all the devices. Python is one of the best and most popular scripting language used today.
You will write a Python module named “your1stname_yourlastname_files.py” that will contain several functions to perform the following tasks in the prescribed order. Your program should have the statement “if __name__ == __main__” at the bottom, which will kick-start the execution of your module. Note that each task is worth 10 points.
1. For every task, your Python code should display what it is about to do before starting, and inform the user when the task is done. This will also help you with the architecture of your code and debugging.
2. Create a directory named “your1stname_yourlastname_DIR” in the “Documents” directory of your computer.
3. Inside the “your1stname_yourlastname_DIR” directory, automate the creation of directories and files according to the tree structure in Figure 1. You should find patterns and the file/folder names that would allow you to achieve this through a few loops. For instance, you may create variables such as “folder” and “image” and use them to generate names automatically.
In real life, it is a good practice to create a duplicate of a folder/file on which you will be working and work on the copy rather than on the original. This will help you preserve the document is things go wrong.
4. Replicate the content of “your1stname_yourlastname_DIR” into a new directory named “your1stname_yourlastname_DIR-CP” that you will create inside your “Documents” folder.
In real life, you will have to modify files, rename files, delete files, or archive (zip) files.
5. Go through “your1stname_yourlastname_DIR” and delete all “.txt” files that your encounter. The files should be recoverable from the recycle bin.
6. Inside “your1stname_yourlastname_DIR-CP” rename all files with names ending in “2.jpg” by replacing this ending with “2.pdf.” This means you will alter those files into .pdf files.
7. Identify all the .pdf files that you created above, and archive them together in a single “.gzip” archive file named “pdf2.gzip.” Move the pdf2.gzip file to “your1stname_yourlastname_DIR.”
8. In “your1stname_yourlastname_DIR,” create a file named ”listofall.txt” as a record where you list all the files and folders that remain in “your1stname_yourlastname_DIR-CP,” and then delete “your1stname_yourlastname_DIR-CP” irreversibly, meaning it cannot be recovered. Not more that one file/folder name should be on the same line.
In real life, you will have to write codes to packup documents.
9. Create a “Backup” folder in your “Downloads” directory to backup the “pdf2.gzip” and ”listofall.txt” files.
You need to verify that your code performed the right modifications. For directories and files, plotting a tree structure is usually used.
10. Display a tree structure of “your1stname_yourlastname_DIR,” similar to the one in Figure 1.
After you check your code and are satisfy with it, submit your .py module file and a screenshot of your final tree structure to Blackboard.
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme