Open main menu

CDOT Wiki β

Changes

OPS435 Python3 Assignment 1

287 bytes added, 19:34, 29 January 2020
Create a private repository on github.com under your account by cloning the sample repo
== Tests and Test results ==
You must name your python 3 script as <code>a1_[Student_id].py</code>. The following examples assumes that the student_id is rchan.The script should accept two command line arguments, the first one is the date in "YYYY/-MM/-DD" format, and the second one is the number of day from the given date, a positive value indicates the number of days after the given date, and a negative value indicates the number of days before the given date. There is an optional flag called --step which can be provided at the command line that makes the program print out all dates until the target date. If the "YYYY-MM-DD" format is broken, your script should give an appropriate error message. Invalid months (>12) or invalid days of month(different for each month), should be detected and give appropriate error messages. For examples:
* <b><code>python3 a1_rchan.py 2019-01-01 1</code></b>, and the output should be<br />
2019-01-02
= Deliverable =
== Create a private repository on github.com under your account by cloning the sample repo==* clone the repository https://github.com/rayfreeping/ops435-a1 for useful resource, sample code and test scripts for this assignment.* name the cloned repository under your github account as 'ops435-a1'
* invite 'rayfreeping' as one of the collaborator to your 'ops435-a1' repository
* use this repository for developing the and keeping track of the following text/source code files:
** the python script for assignment 1 named "a1_[seneca-id].py"
** the test results produce by the assignment checking script "checkA1.py". Name it as a1_results.txt
* double check and make sure your ops435-a1 on github is configured as a private repository.
= Rubric =
1,760
edits