Changes

Jump to: navigation, search

OPS435 Python Assignment 1 2017 - 3

550 bytes added, 21:34, 4 September 2017
Assignment 1 - Parsing a log file
'''Due Date''': Ask your professor for exact date.
'''Late penalty''': 10% per day (including weekends), and note the assignment must be completed satisfactorily in order to pass the courseno matter what grade you get.
== Overview ==
* <b><code>filename</code></b>, or:
* <b><code>filename1 filename2 filename3</code></b> etc... - any number of filenames from 1 to as many as the command-line supports.
 
If the first argument is <b><code>--default</code></b> or <b><code>-d</code></b>, then you should not print a menu and instead execute the "How many total requests (Code 200)".
 
If there are no arguments - you should print an error and exit.
 
If there are other arguments - assume that they are names of files containing apache logs. If there is more than one file - append their contents to each other with the first one at the top and the last one at the bottom. Read the file contents in that order into your own data structures.
=== Header ===
Academic Honesty Policy is not a joke and violators will be punished.
</source>
 
<source lang="python"></source>
=== Main Menu ===

Navigation menu