Changes

Jump to: navigation, search

OPS435 Python Assignment 2

229 bytes added, 10:52, 14 March 2019
Assignment 2 - Usage Report
asmith pts/11 10.40.105.130 Tue Feb 13 14:07:43 2018 - Tue Feb 13 16:07:43 2018 (02:00)
</pre>
It is always desirable to have a daily, weekly, monthly usage reports by user or by remote host based on the above information.
== Tasks for this assignment ==In this assignment, your duty task is to
# work out an algorithm for producing daily, weekly, and monthly usage reports by user or by remote host based on the information obtained from the 'last' command or any given files which contain similar information as the 'last' command.
# Once you believe you have a workable algorithm, you should then identify the different tasks appropriate python objects and functions to be used for each task in your algorithm and any repeated sub-tasks,# implement your computational solution using a single python script with . You can use any built-in functions and functions from the proper use of allowed python modules and functions, and finallyin your script.
# review your working python code to see whether you can improve the interface of each function and facilitate better code re-use (this process is called refactoring).
== Allowed Python Modules you can use in your script for this assignment ==
* the <b>os, sys</b> modules
* the <b>argparse</b> module
-v, --verbose tune on output verbosity
Copyright 2018 2019 - Raymond Chan
</pre>
Replace the last line with your own full name
=== Header ===
All your Python codes for this program must be placed in a <font color='red'><b><u>single source file</u></b></font>. Please include the following declaration by <b><u>you</u></b> as the <font color='blue'><b>script level docstring </b></font> in your Python source code file (replace [Student_id] with your Seneca email user name, and "Student Name" with your own name):
<source>OPS435 Assignment 2 - Winter 2019
1,760
edits

Navigation menu