Changes

Jump to: navigation, search

OPS435 Assignment 2 for Section A

3,371 bytes removed, 10:56, 15 July 2021
Second Milestone (due August 2)
[[Category:OPS435-Python]][[Category:rchanebrauer]]= Overview: du Improved =<code>du</code> is a tool for inspecting directories. It will return the contents of a directory along with how much drive space they are using. However, it can be parse its output quickly, as it usually returns file sizes as a number of bytes:
=Assignment 2 <code><b>user@host ~ $ du - Usage Report=-max-depth 1 /usr/local/lib</b></code><pre>164028 /usr/local/lib/heroku11072 /usr/local/lib/python2.792608 /usr/local/lib/node_modules'''Weight:''' 10% of the overall grade8 /usr/local/lib/python3.8267720 /usr/local/lib'''Due Date:''' Please follow the three stages of submission schedule:</pre>* Complete the algorithm document for this assignment You will therefore be creating a tool called <b>duim (du improved)</b>. Your script by July 31, 2020 will call du and submit on Blackboard by 9:00 PM,* Complete return the your Python script and push to Github by August 14, 2020 at 9:00 PMcontents of a specified directory, andgenerate a bar graph for each subdirectory. The bar graph will represent the drive space as percent of the total drive space for the specified directory.* Copy An example of the finished code your Python script into a Word document and submit to Blackboard by August 14, 2020 at 9might produce is this:00 PM.
==Overview==Most system administrators would like to know the utilization of their systems by their users<code><b>user@host ~ $ ./duim. On a Linux system, each user's login records are normally stored in the binary file py -H /usr/local/varlib</logb></wtmp. The login records in this binary file can not be viewed or edited directly using normal Linux text commands like 'less', 'cat', etc. The 'last' command is often used to display the login records stored in this file in a human readable form. Please check the man page of the 'last' command for available options. The following is the contents of the file named "usage_data_file", which is a sample output of the 'last' command with the '-Fiw' flag on:code>
<pre>
$ last -Fiw > usage_data_file$ cat usage_data_filerchan pts/9 61 % [============ 10] 160.40.91.236 Tue Feb 13 16:53:42 2018 - Tue Feb 13 16:57:02 2018 (00:03) cwsmith pts2 M /10 10.40.105.130 Wed Feb 14 23:09:12 2018 - Thu Feb 15 02:11:23 2018 (03:02)rchan ptsusr/2 10.40.91.236 Tue Feb 13 16:22:00 2018 - Tue Feb 13 16:45:00 2018 (00:23) rchan ptslocal/5 10.40.91.236 Tue Feb 15 16:22:00 2018 - Tue Feb 15 16:55:00 2018 (00:33) asmith ptslib/2 10.43.115.162 Tue Feb 13 16:19:29 2018 - Tue Feb 13 16:22:00 2018 (00:02) herokutsliu2 pts/4 % [= ] 10.40.1058 M /usr/local/lib/python2.130 Tue Feb 13 16:17:21 2018 - Tue Feb 13 16:30:10 2018 (00:12) 7cwsmith pts34 % [======= ] 90.4 M /usr/local/lib/13 10.40.91.247 Tue Mar 13 18:08:52 2018 - Tue Mar 13 18:46:52 2018 (00:38) node_modulesasmith pts0 % [ ] 8.0 K /usr/local/lib/11 10python3.408Total: 261.105.130 Tue Feb 13 14:07:43 2018 - Tue Feb 13 16:07:43 2018 (02:00)4 M /usr/local/lib
</pre>
It is always desirable to have a daily, or monthly usage reports by user or by remote host based on the above information.
== Tasks for this assignment ==In this assignmentNotice that total size of the target directory (/usr/local/lib) is around 260 Megabytes. Of that 260 Megabytes, your should preform the following activities:# Complete a detail algorithm for producing monthly usage reports by user or by remote host based on the information stored 160 Megabytes can be found in any given files generated from the 'last' commandheroku subdirectory. # Once you have complete the detail algorithm, you should then <b>design the structure 160 MB represents 61% of your python script</b> by identifying the appropriate python objectstotal 160 MB. The percentages don't have to add up to 100%, functions and modules to be used for each task since with these arguments we are excluding files in your algorithm and the main control logictarget directory. Make sure You may choose to add an option to identify the followings:## input data, ## computation tasks, and ## outputs.# implement your computational solution using a single python script. You can use any built-in functions and functions from the python modules list in the "Allowed Python Modules" section below to implement your solution. # Test and review your working python code to see whether you can improve the interface of each function to facilitate better code re-use (this process is called <b>refactoring</b>)print files as well.
== Allowed Python Modules ==* the <b>osThe bar chart in this example is 20 characters long, sys</b> modules* the <b>argparse</b> module* but this must be dynamic. The 20 characters does <bi>timenot</bi> module * the square brackets. The <b>subprocess</b> module** [https://docsresolution of the bar chart must become more accurate as you increase the total size.python.org/3/howto/argparse.html Argparse Tutorial] - should read For example, if the user specifies a length of 100 total characters, in this first.** [https://docs.python.org/3/library/argparseexample 61 of those characters would be equal signs and 39 would be spaces.html Argparse API reference information page]
== Instructions ==The output of each subdirectory should include percentage, size in bytes (or Human readable if the user uses the -H option), the bar chart and the name of the subdirectory. Specific formatting of the final output will be up to you, but should be formatted in such a way that the output is easy to read. (ie. use columns!)
Accept the Assignment #2 via the link on Blackboard, and clone the Github repository on a Linux machine of your choosing. Rename "a2_template.py" You will be required to "a2_<fulfill some specific requirements before completing your myseneca username>script.py, just as we did in Assignment 1Read on. You may also want to create a symbolic link using <code>ln -s a2_<myseneca_id>.py a2.py</code> to save time.
=Assignment Requirements == Program Name and valid command line arguments ===Name your Python3 script as <code>a2_[student_id].py</code>. Your script must accept one or more "file name" as its command line parameters and other optional parameters as shown below. Your python script should produce the following usage text when run with the --help option:<pre>[eric@centos7 a1]$ python3 ./a2.py -husage: new_template.py [-h] [-l {user,host}] [-r RHOST] [-t {daily,monthly}] [-u USER] [-s] [-v] F [F ...]
Usage Report based on == Starting Code == The first step for the last commandassignment will be to accept the assignment using the invite code provided by your instructor. You will need to create a GitHub account to do this. (If you already have a GitHub account, you may use this).
positional arguments: F list of files to be processedIn your repository you will find a file called <b>duim.py</b>. This file contains starting code. You will complete the assignment inside duim.py. <b>Do not rename this file or the functions inside, unit tests will fail and you will lose marks!</b>
optional arguments: -h, --help show Also in your repository you will find <b>checkA2.py</b>. You can use this help message and exit -l {user,host}, --list {user,host} generate user name or remote host IP from the given files -r RHOST, --rhost RHOST usage report for the given remote host IP -t {daily,monthly}, --type {daily,monthly} type of report: daily or monthly -u USER, --user USER usage report for the given user name -s, --seconds return times in seconds -v, --verbose turn on output verbositycheck script to check your work.
Copyright 2020 - Eric Brauer== Permitted Modules ==<b><font color='blue'>Your python script is allowed to import only the <u>os, subprocess, argparse and sys</u> modules from the standard library.</font></b>
== Required Functions ==You will need to complete the functions inside the provided file called <code>duim.py</code>. The provided <code>checkA2.py</precode>Replace the last line with your own full namewill be used to test these functions.
Compare * <code>call_du_sub()</code> should take the target directory as an argument and return a list of strings returned by the command <b>du -d 1<target directory></b>.** Use subprocess.Popen. ** '-d 1' specifies a <i>max depth</i> of 1. Your list shouldn't include files, just a list of subdirectories in the target directory.** Your list should <u>not</u> contain newline characters. * <code>percent_to_graph()</code> should take two arguments: percent and the total chars. It should return a 'bar graph' as a string.** Your function should check that the percent argument is a valid number between 0 and 100. It should fail if it isn't. You can <code>raise ValueError</code> in this case.** <b>total chars</b> refers to the usage output total number of characters that the bar graph will be composed of. You can use equal signs <code>=</code> or any other character that makes sense, but the empty space <b>must be composed of spaces</b>, at least until you have now with passed the one abovefirst milestone.** The string returned by this function should only be composed of these two characters. There For example, calling <code>percent_to_graph(50, 10)</code> should return: '===== '<b>Please note that the '' characters should <u>not</u> be part of the output, they are here to indicate that this is one option missinga string!</b>* <code>create_dir_dict</code> should take a list as the argument, you will need to change and should return a dictionary.** The list can be the list returned by <code>argparsecall_du_sub()</code> . ** The dictionary that you return should have the full directory name as <i>key</i>, and the number of bytes in the directory as the <i>value</i>. This value should be an integer. For example, using the example of <b>/usr/local/lib</b>, the function to implement itwould return: {'/usr/local/lib/heroku': 164028, '/usr/local/lib/python2.7': 11072, ...}
== Additional Functions ==You will may create any other functions that there is an 'args' object in a2_template.py. Once the <code>parse_command_args()</code> function is calledyou think appropriate, it will return an args objectespecially when you begin to build additional functionality. The command line arguments Part of your evaluation will be stored as attributes on how "re-usable" your functions are, and sensible use of that object. <b>Do not use sys.argv to parse argumentsand return values.</b>
If there is only one file name provided at the command line, read == Use of GitHub ==You will be graded partly on the login/logout records from the contents quality of the given fileyour Github commits. If the file name is "online"You may make as many commits as you wish, get the record it will have no impact on the system your script grade. The only exception to this is being execute using the Linux command "last -iwF"<b>assignments with very few commits. The format of each line in the file should </b> These will receive low marks for GitHub use and may be the same as the output of flagged for possible academic integrity violations.<b><font color='last -Fiwblue'>Assignments that do not adhere to these requirements may not be accepted. Filter out incomplete login</logout record (hints: check for the number of fields in each record).font></b>
If there is more than one file name providedProfessionals generally follow these guidelines:* commit their code after every significant change, merge all * the files together with the first one at the top code <i>should hopefully</i> run without errors after each commit, and the last one at the bottom. Read and process the file contents in that order in your program* every commit has a descriptive commit message.
=== Header ===After completing each function, make a commit and push your code.
All your Python codes for this assignment must be placed in After fixing 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 nameproblem, make a commit and "Student Name" with push your own name):code.
<sourceb>OPS435 Assignment 2 - Summer 2020Program: a2_[seneca_id].pyAuthor: "Student Name"The python code in this file a2_[seneca_id].py <u>GitHub is original your backup and your proof of work written by"Student Name". No code in this file is copied from any other source including any person, textbook, or on-line resource except those providedby the course instructor. I have not shared this python file with anyoneor anything except for submission for grading. I understand that the Academic Honesty Policy will be enforced and violators will be reported and appropriate action will be taken.</sourceu></b>
=== Use of Github ===You These guidelines are not always possible, but you will once again be graded partly on <b>correct use of version control</b>, that is use of numerous commits with sensible commit messagesexpected to follow these guidelines as much as possible. In professional practiceBreak your problem into smaller pieces, this is critically important for the timely delivery of code. You will be expected and work iteratively to use: <ol><li><code>git add *solve each small problem.py</code><li><Test your code>git commit -m "a message that describes the after each small change"</code><li><code>git push</code>you make, and address errors as soon as they arise. It will make your life easier!
after completing each step== Coding Standard ==Your python script must follow the following coding guide:* [https://www. There is no penalty python.org/dev/peps/pep-0008/ PEP-8 -- Style Guide for "too many commits", there is no such thing!writing Python Code]
=== Suggested Process Documentation ===<ol><li> Read the rest There are three types of this document, try comments in programming and understand what is expected. <li> Use the invite link posted to Blackboard to accept the your assignment, and clone the repo to a Linux machine.should contain each:<li> Copy a2_template.py into a2_<myseneca_id>.py. Replace with * The top-level docstring should contain information about what your Myseneca username.<li> Run the script itselfdoes. Investigate argparse. Experiment with This is included in the various options, particularly -vduim. Read the docs, what option must you implement? Go ahead and implement it. Test with print() for now. <b>Commit the change.</b><li> Investigate the `parse_user()` function, with the <code>usage_data_file</code>. This should take the list of lines from the py file, and instead return a list of usernames. <b>Commit Please complete the changetop-level docstring.</b><li> * Use argparse with `-l user` `usage__data_file` to call the `parse_user()` function. <b>Commit the change.</b><li> Write a Python's function docstrings to print the list from `parse_for_user()`. Now you have input -> processing -> output. <b>Continue committing these changes as your proceed.</b><li> Implement document how each of the same things as parse_for_user but for `parse_for_hosts`functions work. Output The docstring should be sorteddescribe what each function does. <li> Compare your output with the output below.<li> Write the `parse_for_daily()` function using the pseudocode given. This * Your script should be taking the list of lines from your file, and output also include in-line comments to explain anything that isn't immediately obvious to a dictionary with start dates in DD/MM/YYYY format as the key and usage in seconds as the valuebeginner programmer.<li> <code> {'01/01/1980': 1200, '02/01/1980': 2400, '03/01/1980': 2200} </code><li> Once your `parse_for_daily()` function worksFor these comments, call it with the argparse options, and display the contents.<li> Write (or modify) a function to do the same for remote hosts.<li> Implement the outputting of the duration in HH:MM:SS instead of seconds. It's recommended you write a function always better to take in seconds and return a string. Call this when the `-s` option is absent. Make sure this is working with remote hosts as well. You should now have x of y tests passing.explain <lii> Finally, implement the `--monthly` option. Create a new function and get it working. start with seconds, then duration and make sure it works with remote as well.why<li/i> Perform last checks and document your code. Write **why** your code is doing what it does, rather than **<i>what** </i> it's doing. You should have 100% Also: <b><u>It is expected that you will be able to explain how each part of tests succeedingyour code works in detail.</olu></b>
=== Output Format Authorship Declaration ===The format of All your log tables should Python code for this assignment must be identical to placed in the sample output below, in order to minimize test check errorprovided Python file called <b>duim.py</b>. The horizontal banner between title and data should be composed <u>Do not change the name of equal signs (=), and be this file.</u> Please complete the length declaration <b><u>as part of the title string.List tables should need no extra formatting.For dailytop-level docstring</u></montly tables b> in your Python source code file (replace "Student Name" with two columns, The first column should be 10 characters long and be left-aligned.The second column should be 15 characters long and be right-alignedyour own name).
=Submission Guidelines and Process == Sample Outputs ===The following are the reports generated by the usage report script (ur.py) with the "usage_data_file" mentioned in the overview section. You can download the file [https://scs.senecac.on.ca/~raymond.chan/ops435/a2/usage_data_file here] to test your ur.py script.==== User List ====The following is the user list extracted from the usage_data_file created by the command:<pre>[eric@centos7 a2]$ ./a2.py -l user usage_data_file</pre>
<pre>User list for usage_data_file===========================Clone Your Repo (ASAP) == asmithcwsmithrchantsliu2The first step will be to clone the Assignment 2 repository. The invite link will be provided to you by your professor. <b>You will need a free GitHub account to complete this assignment.</preb>If you already have an existing GitHub account, you may use it.
==== Remote Host List ====The following is repo will contain a check script, a README file, and the remote host list extracted from the usage_file_file created by the command:<pre>[eric@centos7 a2]$ ./a2file where you will enter your code.py -l host usage_data_file</pre>
<pre>Host list for usage_data_file===========================The First Milestone (due July 26) ==10.40.105For the first milestone you will have two functions to complete.13010* <code>call_du_sub</code> will take one argument and return a list.40The argument is a target directory.91The function will use <code>subprocess.23610.40Popen</code> to run the command <b>du -d l <target_directory></b>.91.24710.43.115.162* <code>percent_to_graph</precode>will take two arguments and return a string.
==== Daily Usage Report by User ====The following are Daily Usage Reports created for user rchan. The output can be displayed either in seconds:In order to complete <precode>[eric@centos7 a2]$ ./a2.py -u rchan -t daily usage_data_file --secondspercent_to_graph()</precode>, it's helpful to know the equation for converting a number from one scale to another.
<pre>Daily Usage Report for rchan============================Date Usage13/02/2018 158015/02/2018 1980Total 3560</pre>[[File:Scaling-formula.png]]
In this equation, ``x`` refers to your input value percent and ``y`` will refer to the number of symbols to print...or by omitting The max of percent is 100 and the <code>--seconds</code> option, in HH:MM:SS formatmin of percent is 0. <pre>[eric@centos a2]$ Be sure that you are rounding to an integer, and then print that number of symbols to represent the percentage./a2The number of spaces that you print will be the inverse.py -u rchan -t daily usage_data_file</pre>
Test your functions with the Python interpreter. Use <precode>Daily Usage Report for rchan============================Date Usage13/02/2018 00:26:0015/02/2018 00:33:00Total 00:59:20python3</precode>It's recommended you get the seconds working first, then create a function to converts seconds to HH:MM:SS import duim duim.percent_to_graph(50, 10)
==== Daily Usage Report by Remote Host====The following is a Daily Usage Report created for To test with the Remote Host 10.40.105.103 by check script, run the commandfollowing:<pre>[eric@centos7 a2]$ ./a2.py -r 10.40.105.130 -t daily usage_data_file -s</pre>
<precode>Daily Usage Report for 10python3 checkA2.40.105.130====================================Date Usage14/02/2018 1093113/02/2018 7969Total 18900py -f -v TestPercent</precode>
Just as you did with <code>python3 checkA2.py -f -userv TestDuSub</code>, your script should also display the time in HH:MM:SS by omitting the <code>--seconds</code> option.
==== Monthly Usage Report by User ==Second Milestone (due August 2) ==The following is a Monthly Usage Report created for user rchan by For the command:second milestone you will have two more functions to complete.* <precode>[eric@centos7 a2]$ .create_dir_dict</a2.py -u rchan -t monthly usage_data_file -s code> will take your list from <code>call_du_sub</precode>and return a dictionary. ** Every item in your list should create a key in your dictionary.** Your dictionary values should be a number of bytes.
For example: <precode>Monthly Usage Report for rchan==============================Date Usage02{'/usr/lib/2018 3560Total 3560local': 33400}</precode> ** Again, test using your Python interpreter or the check script.
<pre>[eric@centos7 a2]$ ./a2.py -u cwsmith -t monthly usage_data_file</pre>To run the check script, enter the following:
<precode>Monthly Usage Report for cwsmith================================Date Usage02/2018 03:02:1103/2018 00:38:00Total 03:40:11python3 checkA2.py -f -v TestDirDict</precode>
==== Monthly Usage Report by Remote Host ====The following is You will be using a Monthly Usage Report created for the remote host 10.40.105.130 by module in the command:standard library called <preb>[eric@centos7 a2]$ .Argparse</a2b>.py -r 10This will help handle more complex sets of options and arguments than simply using sys.40argv.105.130 -t monthly usage_data_fileRefer to the argparse documentation to complete the <code>parse_command_args</precode>function. At minimum, your assignment should handle the following options and arguments:
<pre>Monthly Usage Report for 10* -h will print a usage message.40This will automatically be created by argparse itself, you will not need to implement this.105However, refer carefully to the sample output and ensure that your help message matches the required output.130======================================Date Usage02/2018 05:15:00Total 05:15:00* -H will print file sizes in Human readable format. For example, 1024 bytes will be printed as 1K, 1024 kilobytes will be printed as 1M, and so on. * -l </prenumber>will set the maximum length of the bar graph. The default should be 20 character. This option will require an option argument that is an integer.* Your script will also require one positional argument which contains the target directory for scanning.
As discussed before, this command Your assignment should also accept be able to produce the <code>--seconds</code> option.following:
==== List Users With Verbose ====Calling any of the previous commands with the <code><b>user@host ~ $ python3 duim.py --verboseh</b></code> option should cause the script to output more information:
<pre>
usage: duim.py [eric@centos7 a2-h]$ ./a2.py [-H] [-l user usage_data_file -v</pre>LENGTH] [target]
<pre>Files to be processed: ['usage_data_file']Type of args for files <class 'list'>User list for usage_data_file=============================asmithcwsmithrchantsliu2</pre>DU Improved -- See Disk Usage Report with bar charts
<pre>positional arguments:[eric@centos7 a2]$ target The directory to scan./a2.py -r 10.40.105.130 -t monthly usage_data_file -v</pre>
<pre>Files to be processedoptional arguments: ['usage_data_file']Type of args for files <class 'list'> -h, --help show this help message and exitusage report for remote host: 10 -H, --human-readable print sizes in human readable format (e.40g.105.1301K 23M 2G)usage report type: monthly -l LENGTH, --length LENGTHMonthly Usage Report for 10.40 Specify the length of the graph.105Default is 20.130======================================Date Usage02/2018 05:15:00Total 05:15:00</pre>
==== Daily Report From Online ====Running the script with "online" as a file argument should call a subprocess.Popen object and run the command <code>last -Fiw</code>.<pre>[eric@mtrx-node06pd ~]$ ./a2.py -l user onlineCopyright 2021
</pre>
(Example Output from Matrix)Use the following to test your code:<pre>User list for online====================aabbas28aaddae1aali309aaljajahaalves-staffaaanees1aarhamaassankanovabalandinabhaseenabholayacamuzcuacchikotiadas20adeel.javed...</pre>
<precode>[eric@mtrx-node06pd ~]$ ./a2python3 checkA2.py -u adas20 f -t daily onlinev TestArgs</precode>
<pre>Daily Usage Report for abholay==========================Minimum Viable Product ==Once you have achieved the Milestones, you will have to do the following to get a minimum viable product:* In your <code>if __name__ =='__main__'</code> block, you will have to call the parse_command_args function. Experiment with print statements so that you understand how each option and argument are stored. ** If the user has entered more than one argument, or their argument isn't a valid directory, print an error message.Date Usage** If the user doesn't specify any target, use the current directory. 16* Call <code>call_du_sub</07code> with the target directory.* Pass the return value from that function to <code>create_dir_dict</2020 00code>* You may wish to create one or more functions to do the following:13:0917** Use the total size of the target directory to calculate percentage.** For each subdirectory of target directory, you will need to calculate a percentage, using the total of the target directory.** Once you've calculated percentage, call <code>percent_to_graph</07code> with a max_size of your choice. ** For every subdirectory, print <i>at least</2020 00:08:59i> the percent, the bar graph, and the name of the subdirectory.Total 00:22:08** The target directory <b>should not</b> have a bar graph.
</pre>== Additional Features ==
=== Detail Algorithm Document ===Follow After completing the standard computation procedure: input - process - ouput when creating the algorithm document for this assignment.==== input ====* get data (command line arguments/options) from the user using the functions provided by the argparse module* according above, you are expected to the arguments/options given at the command line, take appropriate processing actionadd some additional features. ==== 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, Some improvements you may have more) could make are useful in handling the following sub-tasks:* reads login records from files and filters out unwanted records* convert login records into proper python object type so that it can be processed using as much built-in functions as possible * create functions which generate daily usage reports by user and/or by remote host* create functions which generate monthly usage reports by user and/or by remote host
To help you with this assignment, you should use * Format the output in a way that is easy to read.* Add colour to the a2_templateoutput.py * Include files in the repository as output.* Include a threshold, so that results that are less than a user-specified size get excluded from results.* Add more error checking, print a starting point in designing your own Python Usage Report scriptusage message to the user.* Accept more options from the user.* Sort the output by percentage, or by filename.
=== Python script coding and debugging ===For each function, identify what type of objects It is expected that the additional features you provided should be passed to the functionuseful, non-trivial, they should not require super-user privileges and what type should not require the installation of objects should be returned additional packages to the callerwork.Once you (ie: I shouldn't have finished coding a function, you should start a Python3 interactive shell, import your functions and manually test each function and verify its correctness.=== Final Test===Once you have all the individual function tested and that each is working properly, perform the final test with test data provided by your professor and verify that your script produces the correct results before submitting to run pip to make your python program on Blackboard. Upload all the files for this assignment 2 to your vm in myvmlab and perform the final testwork).
== The Assignment (due August 6, 11:59pm) ==
* Be sure to make your final commit before the deadline. Don't forget to also use <code>git push</code> to push your code into the online repository!
* Then, copy the contents of your <b>duim.py</b> file into a Word document, and submit it to Blackboard. <i>I will use GitHub to evaluate your deadline, but submitting to Blackboard tells me that you wish to be evaluated.</i>
== Rubric ==
{| class="wikitable" border="1"
! Task !! Maximum mark !! Actual mark
|-
| Algorithm Submission Program Authorship Declaration || 10 5 ||
|-
| Check Script Results required functions design || 30 5 ||
|-
| Additional Check: 'online' required functions readability || 5 ||
|-
| GitHub Use main loop design || 15 10 ||
|-
| List Functions main loop readability || 5 10 ||
|-
| Daily/Monthly Functions output function design || 10 5 ||
|-
| Output Functions output function readability || 5 ||
|-
| Other Functions additional features implemented || 5 20 ||
|-
| Overall Design/Coherence docstrings and comments || 10 5 ||
|-
| Documentation First Milestone || 5 10 ||
|-
| Second Milestone || 10 |||-| github.com repository: Commit messages and use || 10 |||-| '''Total''' || 100 ||  
|}
== Due Date and Final Submission requirement ==* Stage 1Please submit the following files by the due date: Submit your algorithm document file to Blackboard by July 31, 2020.* Stage 2: Use commits to push [ ] your python script for this assignment to Github, named as 'duim.com. The final state of py', in your repository will be looked at on August 14, 2020 at 9:00 PM.* Stage 3: Copy your python script into a Word document and submit also '''submitted to Blackboard ''', by August 14, 2020 6 at 911:00 PM59pm.

Navigation menu