next up previous
Next: About this document ...

Assignment #1
CpSc 372: Python Programming
Computer Science Department
Clemson University
Python as a scripting language
Brian Malloy, PhD
May 25, 2006



In order to receive credit for this assignment, your solution must be submitted, using the handin command, by 8 AM, Monday, May 29th, 2006. I will zip your files and move them to my directory at that time. You may submit your solution before the deadline as many times as you like; only your final submission will be considered. However, for multiple submissions, it's best to use the same names for files, since only those will be overwritten by your submission.

The purpose of this assignment is to help you to become familiar with the Python language, and its scripting abilities. Write a python program that searches directories, starting from the current directory, and deletes all files with the following format: *.o, *.bak, *.pyc and all occurrences of a.out. However, before deleting a file with .bak extension, prompt the user and ask if it should be deleted. Your program should start at the current directory and recurse through all subdirectories.

Your second assignment will be to put a graphical interface on this program!

Your program must be written in Python and must contain documentation in the form of a readme file. The readme should contain your name and other important information about you and the assignment; for example, what your assignment does, what it fails to do, anything extra or clever that you have done beyond the assignment specification, and how to run your program.

You must submit your assignment using the handin command.

Here is the handin command:

        handin.372.1 1 *




next up previous
Next: About this document ...
Brian Malloy 2006-05-25