Changes

Jump to: navigation, search

OPS435 Assignment 2 Summer

794 bytes added, 10:30, 11 July 2019
Algorithm design
=== Algorithm design ===
Follow the standard computation procedure: input - process - ouput to design your algorithm for this assignment.
==== input ====
* get data (command line arguments/options) from the user using your script
* according to the arguments/options given at the command line, take appropriate processing action.
==== processing ====
* based on the file(s) specified, read the contents of each file and use appropriate objects to store it
* based on the command line arguments/options, process the data accordingly, which includes
** data preprocessing (split a multi-day record into single day record)
** record processing (preform required computation)
==== output ====
* output the required report based on the processed data
==== identify and select appropriate python objects and functions ====
The following python functions (to be created) are useful in handling the following sub-tasks:
* reads login records from files and filters out unwanted records
* create function which generates monthly usage reports by user and/or by remote host
To help you with this assignment, [[OPS435 A1 Usage Report Template|here is a template]] you can use as a starting point in designing your own Python Usage Report script.
 
=== Python script coding and debugging ===
For each function, identify what type of objects should be passed to the function, and what type of objects should be returned to the caller.
1,760
edits

Navigation menu