Friday, September 23, 2011

Project two.

This project is a program that takes a specified file, deletes the contents, then lets you rewrite the contents of the file.I used the system import command to import variable commands, as well as the time function. I used the target command, as well as input variables specified by the user. The applications I used are the same ones I used last time; the terminal which I use to run, and test, the program. I also used the g-edit text editor, to actually write the program. I was able to meet all the requirements for this project.

The E.L. that was incorporated most in my project was Research Fluency and Information Fluency. I had to do a lot of research to get this program to run as well as to add in some functions.

Completing this project taught me several new aspects of programming, including the many different functions that can be imported into a program using python commands.

I most proud of two things with this project, first of all that it is a whopping 112 line program and secondly that I made it with little help of the book, even going so far as to use a function I looked up on my own.

If I had to start over, the way I would improve upon my project is instead of using repeat commands I would assign each command a variable. That way I could shorten the program a bit and I wouldn't have to type as much. To zoom in on the pictures (source code above, program running below) Click the links. If you would like to run the program yourself go here: http://azrathud.com/larry/project2.py right click, and save. Then run in the terminal. Be warned this program is meant to delete a file. Use caution.
http://i.imgur.com/DADyx.png
http://i.imgur.com/2d939.pnghttp://i.imgur.com/U5eUX.pnghttp://i.imgur.com/Vg6rz.pnghttp://i.imgur.com/u0Nhn.png




No comments: